All URIs are relative to https://zernio.com/api, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| createProfile() | POST /v1/profiles | Create profile |
| deleteProfile() | DELETE /v1/profiles/{profileId} | Delete profile |
| getProfile() | GET /v1/profiles/{profileId} | Get profile |
| listProfiles() | GET /v1/profiles | List profiles |
| updateProfile() | PUT /v1/profiles/{profileId} | Update profile |
createProfile($create_profile_request): \Zernio\Model\ProfileCreateResponseCreate profile
Creates a new profile with a name, optional description, and color.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearerAuth
$config = Zernio\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Zernio\Api\ProfilesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$create_profile_request = {"name":"Marketing Team","description":"Profile for marketing campaigns","color":"#4CAF50"}; // \Zernio\Model\CreateProfileRequest
try {
$result = $apiInstance->createProfile($create_profile_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProfilesApi->createProfile: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| create_profile_request | \Zernio\Model\CreateProfileRequest |
\Zernio\Model\ProfileCreateResponse
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteProfile($profile_id): \Zernio\Model\DeleteAccountGroup200ResponseDelete profile
Permanently deletes a profile by ID.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearerAuth
$config = Zernio\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Zernio\Api\ProfilesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$profile_id = 'profile_id_example'; // string
try {
$result = $apiInstance->deleteProfile($profile_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProfilesApi->deleteProfile: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| profile_id | string |
\Zernio\Model\DeleteAccountGroup200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getProfile($profile_id): \Zernio\Model\GetProfile200ResponseGet profile
Returns a single profile by ID, including its name, color, and default status.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearerAuth
$config = Zernio\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Zernio\Api\ProfilesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$profile_id = 'profile_id_example'; // string
try {
$result = $apiInstance->getProfile($profile_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProfilesApi->getProfile: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| profile_id | string |
\Zernio\Model\GetProfile200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
listProfiles($include_over_limit): \Zernio\Model\ProfilesListResponseList profiles
Returns profiles sorted by creation date. Use includeOverLimit=true to include profiles that exceed the plan limit.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearerAuth
$config = Zernio\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Zernio\Api\ProfilesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$include_over_limit = false; // bool | When true, includes over-limit profiles (marked with isOverLimit: true).
try {
$result = $apiInstance->listProfiles($include_over_limit);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProfilesApi->listProfiles: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| include_over_limit | bool | When true, includes over-limit profiles (marked with isOverLimit: true). | [optional] [default to false] |
\Zernio\Model\ProfilesListResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateProfile($profile_id, $update_profile_request): \Zernio\Model\UpdateProfile200ResponseUpdate profile
Updates a profile's name, description, color, or default status.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearerAuth
$config = Zernio\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Zernio\Api\ProfilesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$profile_id = 'profile_id_example'; // string
$update_profile_request = {"name":"Marketing Team (Updated)","color":"#2196F3","isDefault":true}; // \Zernio\Model\UpdateProfileRequest
try {
$result = $apiInstance->updateProfile($profile_id, $update_profile_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProfilesApi->updateProfile: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| profile_id | string | ||
| update_profile_request | \Zernio\Model\UpdateProfileRequest |
\Zernio\Model\UpdateProfile200Response
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]