All URIs are relative to https://api.ageras.com/v2
Method | HTTP request | Description |
---|---|---|
activitiesActionsCreate | POST /activities/{activity_id}/actions | |
activitiesIndex | GET /activities | List activities |
\Ageras\Api\ActivityResource activitiesActionsCreate($activity_id , $activity_action_resource)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: jwt
Ageras\Api\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Ageras\Api\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');
// Configure HTTP basic authorization: login
Ageras\Api\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Ageras\Api\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Ageras\Api\Api\ActivitiesApi();
$activity_id = "activity_id_example"; // string |
$activity_action_resource = new \Ageras\Api\ActivityActionResource(); // \Ageras\Api\ActivityActionResource |
try {
$result = $api_instance->activitiesActionsCreate($activity_id , $activity_action_resource);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ActivitiesApi->activitiesActionsCreate: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
activity_id | string | ||
activity_action_resource | \Ageras\Api\ActivityActionResource |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Ageras\Api\ActivityResult activitiesIndex($criteria)
List activities
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: jwt
Ageras\Api\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Ageras\Api\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');
// Configure HTTP basic authorization: login
Ageras\Api\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Ageras\Api\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Ageras\Api\Api\ActivitiesApi();
$criteria = [
'activity_id' => "activity_id_example"; // string |
'partner_id' => "partner_id_example"; // string |
'lead_id' => "lead_id_example"; // string |
'client_id' => "client_id_example"; // string |
'geo_code' => "geo_code_example"; // string |
'employee_id' => "employee_id_example"; // string |
'partner_user_id' => "partner_user_id_example"; // string |
'type' => "type_example"; // string |
'sort' => "id"; // string | @var string
'limit' => 56; // int | The number of resources to be returned.
'page' => 56; // int | The page position in the result.
'query' => "query_example"; // string | The search wildcard.
];
try {
$result = $api_instance->activitiesIndex($criteria);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ActivitiesApi->activitiesIndex: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
activity_id | string | [optional] | |
partner_id | string | [optional] | |
lead_id | string | [optional] | |
client_id | string | [optional] | |
geo_code | string | [optional] | |
employee_id | string | [optional] | |
partner_user_id | string | [optional] | |
type | string | [optional] | |
sort | string | @var string | [optional] [default to id] |
limit | int | The number of resources to be returned. | [optional] |
page | int | The page position in the result. | [optional] |
query | string | The search wildcard. | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]