All URIs are relative to https://api.keap.com/crm, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| getApplicationConfigurations() | GET /rest/v2/settings/applications:getConfiguration | Get Application Configuration |
| getContactOptionTypes() | GET /rest/v2/settings/contactOptionTypes | Get Contact Option types |
| isApplicationEnabled() | GET /rest/v2/settings/applications:isEnabled | Get Application Status |
getApplicationConfigurations($fields): \Keap\Core\V2\Model\GetSettingsResponseGet Application Configuration
Get configuration values for the application instance.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Keap\Core\V2\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Keap\Core\V2\Api\SettingsApi(
// 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
);
$fields = array('fields_example'); // string[] | By default, only application data is returned. In addition to that, data is returned for the fields that are mentioned in the query.
try {
$result = $apiInstance->getApplicationConfigurations($fields);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SettingsApi->getApplicationConfigurations: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| fields | string[] | By default, only application data is returned. In addition to that, data is returned for the fields that are mentioned in the query. | [optional] |
\Keap\Core\V2\Model\GetSettingsResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getContactOptionTypes(): \Keap\Core\V2\Model\GetContactOptionTypesResponseGet Contact Option types
Gets a list of Contact Option types.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Keap\Core\V2\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Keap\Core\V2\Api\SettingsApi(
// 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
);
try {
$result = $apiInstance->getContactOptionTypes();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SettingsApi->getContactOptionTypes: ', $e->getMessage(), PHP_EOL;
}This endpoint does not need any parameter.
\Keap\Core\V2\Model\GetContactOptionTypesResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
isApplicationEnabled(): \Keap\Core\V2\Model\GetApplicationEnabledStatusResponseGet Application Status
Check if the application is enabled or not
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Keap\Core\V2\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Keap\Core\V2\Api\SettingsApi(
// 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
);
try {
$result = $apiInstance->isApplicationEnabled();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SettingsApi->isApplicationEnabled: ', $e->getMessage(), PHP_EOL;
}This endpoint does not need any parameter.
\Keap\Core\V2\Model\GetApplicationEnabledStatusResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]