Skip to content

Latest commit

 

History

History
128 lines (92 loc) · 4.88 KB

ContactarchivesApi.md

File metadata and controls

128 lines (92 loc) · 4.88 KB

Ageras\Api\ContactarchivesApi

All URIs are relative to https://api.ageras.com/v2

Method HTTP request Description
contactarchivesActionsCreate POST /contactarchives/{contact_archive_id}/actions
contactarchivesIndex GET /contactarchives

contactarchivesActionsCreate

\Ageras\Api\ContactArchiveResource contactarchivesActionsCreate($contact_archive_id , $contact_archive_action_resource)

Example

<?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\ContactarchivesApi();
$contact_archive_id = "contact_archive_id_example"; // string | 
$contact_archive_action_resource = new \Ageras\Api\ContactArchiveActionResource(); // \Ageras\Api\ContactArchiveActionResource | 

try {
    $result = $api_instance->contactarchivesActionsCreate($contact_archive_id , $contact_archive_action_resource);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ContactarchivesApi->contactarchivesActionsCreate: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
contact_archive_id string
contact_archive_action_resource \Ageras\Api\ContactArchiveActionResource

Return type

\Ageras\Api\ContactArchiveResource

Authorization

jwt, login

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

contactarchivesIndex

\Ageras\Api\ContactArchiveResult contactarchivesIndex($criteria)

Example

<?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\ContactarchivesApi();
$criteria = [
        'receiver_partner_id' => 56; // int | Id of partner in correspondence.
        'receiver_lead_id' => 56; // int | Id of lead in correspondence
        'contact_archive_id' => 56; // int | Id of contact archive item
        'sort' => "sent_at"; // string | Sort by.
        '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->contactarchivesIndex($criteria);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ContactarchivesApi->contactarchivesIndex: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
receiver_partner_id int Id of partner in correspondence. [optional]
receiver_lead_id int Id of lead in correspondence [optional]
contact_archive_id int Id of contact archive item [optional]
sort string Sort by. [optional] [default to sent_at]
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]

Return type

\Ageras\Api\ContactArchiveResult

Authorization

jwt, login

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]