VaultApi
- List Connection Custom Mappings
- Get Resource Settings
- Update Settings
- Get All Connections
- Deletes A Connection
- Import Connection
- Get Connection
- Authorize Access Token
- Update Connection
- Consumer Request Counts
- Create Consumer
- Get All Consumers
- Delete Consumer
- Get Consumer
- Update Consumer
- Create Callback State
- Get Resource Custom Fields
- List Custom Mappings
- Get All Consumer Request Logs
- Create Session
- Validate Connection State
Method: connectionCustomMappingsAll
Apideck->getVaultApi()->connectionCustomMappingsAll($data)
Name | Type | Description | Notes |
---|---|---|---|
unified_api | string | Unified API | |
service_id | string | Service ID of the resource to return | |
resource | string | Name of the resource (plural) | |
x_apideck_consumer_id | string | ID of the consumer which you want to get or push data from | |
x_apideck_app_id | string | The ID of your Unify application | |
resource_id | string | This is the id of the resource you want to fetch when listing custom fields. For example, if you want to fetch custom fields for a specific contact, you would use the contact id. |
\Apideck\Client\Model\GetCustomMappingsResponse
Status code | Description |
---|---|
200 | Custom mapping |
400 | Bad Request |
401 | Unauthorized |
402 | Payment Required |
404 | The specified resource was not found |
422 | Unprocessable |
4/5xx | Unexpected error |
<?php
require('vendor/autoload.php');
use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;
$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');
$apideck = new Apideck($config);
try {
$response = $apideck->getVaultApi()->connectionCustomMappingsAll('crm', 'pipedrive', 'leads');
var_dump('API called successfully', $response);
} catch(ApiException $error) {
var_dump('API called failed', $error);
}
[Back to top] [Back to API list] [Back to README]
Method: connectionSettingsAll
Apideck->getVaultApi()->connectionSettingsAll($data)
Name | Type | Description | Notes |
---|---|---|---|
unified_api | string | Unified API | |
service_id | string | Service ID of the resource to return | |
resource | string | Name of the resource (plural) | |
x_apideck_consumer_id | string | ID of the consumer which you want to get or push data from | |
x_apideck_app_id | string | The ID of your Unify application |
\Apideck\Client\Model\GetConnectionResponse
Status code | Description |
---|---|
200 | Connection |
400 | Bad Request |
401 | Unauthorized |
402 | Payment Required |
404 | The specified resource was not found |
422 | Unprocessable |
4/5xx | Unexpected error |
<?php
require('vendor/autoload.php');
use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;
$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');
$apideck = new Apideck($config);
try {
$response = $apideck->getVaultApi()->connectionSettingsAll('crm', 'pipedrive', 'leads');
var_dump('API called successfully', $response);
} catch(ApiException $error) {
var_dump('API called failed', $error);
}
[Back to top] [Back to API list] [Back to README]
Method: connectionSettingsUpdate
Apideck->getVaultApi()->connectionSettingsUpdate($data)
Name | Type | Description | Notes |
---|---|---|---|
service_id | string | Service ID of the resource to return | |
unified_api | string | Unified API | |
resource | string | Name of the resource (plural) | |
connection | \Apideck\Client\Model\Connection | Fields that need to be updated on the resource | |
x_apideck_consumer_id | string | ID of the consumer which you want to get or push data from | |
x_apideck_app_id | string | The ID of your Unify application |
\Apideck\Client\Model\UpdateConnectionResponse
Status code | Description |
---|---|
200 | Connection updated |
400 | Bad Request |
401 | Unauthorized |
402 | Payment Required |
404 | The specified resource was not found |
422 | Unprocessable |
4/5xx | Unexpected error |
<?php
require('vendor/autoload.php');
use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;
$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');
$apideck = new Apideck($config);
try {
$response = $apideck->getVaultApi()->connectionSettingsUpdate('pipedrive', 'crm', 'leads', $connection);
var_dump('API called successfully', $response);
} catch(ApiException $error) {
var_dump('API called failed', $error);
}
[Back to top] [Back to API list] [Back to README]
Method: connectionsAll
Apideck->getVaultApi()->connectionsAll($data)
Name | Type | Description | Notes |
---|---|---|---|
x_apideck_consumer_id | string | ID of the consumer which you want to get or push data from | |
x_apideck_app_id | string | The ID of your Unify application | |
api | string | Scope results to Unified API | |
configured | bool | Scopes results to connections that have been configured or not |
\Apideck\Client\Model\GetConnectionsResponse
Status code | Description |
---|---|
200 | Connections |
400 | Bad Request |
401 | Unauthorized |
402 | Payment Required |
404 | The specified resource was not found |
422 | Unprocessable |
4/5xx | Unexpected error |
<?php
require('vendor/autoload.php');
use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;
$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');
$apideck = new Apideck($config);
try {
$response = $apideck->getVaultApi()->connectionsAll();
var_dump('API called successfully', $response);
} catch(ApiException $error) {
var_dump('API called failed', $error);
}
[Back to top] [Back to API list] [Back to README]
Method: connectionsDelete
Apideck->getVaultApi()->connectionsDelete($data)
Name | Type | Description | Notes |
---|---|---|---|
service_id | string | Service ID of the resource to return | |
unified_api | string | Unified API | |
x_apideck_consumer_id | string | ID of the consumer which you want to get or push data from | |
x_apideck_app_id | string | The ID of your Unify application |
void (empty response body)
Status code | Description |
---|---|
204 | Resource deleted |
400 | Bad Request |
401 | Unauthorized |
402 | Payment Required |
404 | The specified resource was not found |
422 | Unprocessable |
4/5xx | Unexpected error |
<?php
require('vendor/autoload.php');
use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;
$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');
$apideck = new Apideck($config);
try {
$response = $apideck->getVaultApi()->connectionsDelete('pipedrive', 'crm');
var_dump('API called successfully', $response);
} catch(ApiException $error) {
var_dump('API called failed', $error);
}
[Back to top] [Back to API list] [Back to README]
Method: connectionsImport
Apideck->getVaultApi()->connectionsImport($data)
Name | Type | Description | Notes |
---|---|---|---|
service_id | string | Service ID of the resource to return | |
unified_api | string | Unified API | |
connection_import_data | \Apideck\Client\Model\ConnectionImportData | Fields that need to be persisted on the resource | |
x_apideck_consumer_id | string | ID of the consumer which you want to get or push data from | |
x_apideck_app_id | string | The ID of your Unify application |
\Apideck\Client\Model\CreateConnectionResponse
Status code | Description |
---|---|
200 | Connection created |
400 | Bad Request |
401 | Unauthorized |
402 | Payment Required |
404 | The specified resource was not found |
422 | Unprocessable |
4/5xx | Unexpected error |
<?php
require('vendor/autoload.php');
use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;
$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');
$apideck = new Apideck($config);
try {
$response = $apideck->getVaultApi()->connectionsImport('pipedrive', 'crm', $connection);
var_dump('API called successfully', $response);
} catch(ApiException $error) {
var_dump('API called failed', $error);
}
[Back to top] [Back to API list] [Back to README]
Method: connectionsOne
Apideck->getVaultApi()->connectionsOne($data)
Name | Type | Description | Notes |
---|---|---|---|
service_id | string | Service ID of the resource to return | |
unified_api | string | Unified API | |
x_apideck_consumer_id | string | ID of the consumer which you want to get or push data from | |
x_apideck_app_id | string | The ID of your Unify application |
\Apideck\Client\Model\GetConnectionResponse
Status code | Description |
---|---|
200 | Connection |
400 | Bad Request |
401 | Unauthorized |
402 | Payment Required |
404 | The specified resource was not found |
422 | Unprocessable |
4/5xx | Unexpected error |
<?php
require('vendor/autoload.php');
use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;
$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');
$apideck = new Apideck($config);
try {
$response = $apideck->getVaultApi()->connectionsOne('pipedrive', 'crm');
var_dump('API called successfully', $response);
} catch(ApiException $error) {
var_dump('API called failed', $error);
}
[Back to top] [Back to API list] [Back to README]
Method: connectionsToken
Apideck->getVaultApi()->connectionsToken($data)
Name | Type | Description | Notes |
---|---|---|---|
service_id | string | Service ID of the resource to return | |
unified_api | string | Unified API | |
x_apideck_consumer_id | string | ID of the consumer which you want to get or push data from | |
x_apideck_app_id | string | The ID of your Unify application | |
body | object |
\Apideck\Client\Model\GetConnectionResponse
Status code | Description |
---|---|
200 | Connection |
400 | Bad Request |
401 | Unauthorized |
402 | Payment Required |
404 | The specified resource was not found |
422 | Unprocessable |
4/5xx | Unexpected error |
<?php
require('vendor/autoload.php');
use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;
$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');
$apideck = new Apideck($config);
try {
$response = $apideck->getVaultApi()->connectionsToken('pipedrive', 'crm', $connectionsToken);
var_dump('API called successfully', $response);
} catch(ApiException $error) {
var_dump('API called failed', $error);
}
[Back to top] [Back to API list] [Back to README]
Method: connectionsUpdate
Apideck->getVaultApi()->connectionsUpdate($data)
Name | Type | Description | Notes |
---|---|---|---|
service_id | string | Service ID of the resource to return | |
unified_api | string | Unified API | |
connection | \Apideck\Client\Model\Connection | Fields that need to be updated on the resource | |
x_apideck_consumer_id | string | ID of the consumer which you want to get or push data from | |
x_apideck_app_id | string | The ID of your Unify application |
\Apideck\Client\Model\UpdateConnectionResponse
Status code | Description |
---|---|
200 | Connection updated |
400 | Bad Request |
401 | Unauthorized |
402 | Payment Required |
404 | The specified resource was not found |
422 | Unprocessable |
4/5xx | Unexpected error |
<?php
require('vendor/autoload.php');
use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;
$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');
$apideck = new Apideck($config);
try {
$response = $apideck->getVaultApi()->connectionsUpdate('pipedrive', 'crm', $connection);
var_dump('API called successfully', $response);
} catch(ApiException $error) {
var_dump('API called failed', $error);
}
[Back to top] [Back to API list] [Back to README]
Method: consumerRequestCountsAll
Apideck->getVaultApi()->consumerRequestCountsAll($data)
Name | Type | Description | Notes |
---|---|---|---|
consumer_id | string | ID of the consumer to return | |
start_datetime | string | Scopes results to requests that happened after datetime | |
end_datetime | string | Scopes results to requests that happened before datetime | |
x_apideck_app_id | string | The ID of your Unify application |
\Apideck\Client\Model\ConsumerRequestCountsInDateRangeResponse
Status code | Description |
---|---|
200 | Consumers Request Counts within Date Range |
400 | Bad Request |
401 | Unauthorized |
402 | Payment Required |
404 | The specified resource was not found |
422 | Unprocessable |
4/5xx | Unexpected error |
<?php
require('vendor/autoload.php');
use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;
$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');
$apideck = new Apideck($config);
try {
$response = $apideck->getVaultApi()->consumerRequestCountsAll('test_user_id', '2021-05-01T12:00:00.000Z', '2021-05-30T12:00:00.000Z');
var_dump('API called successfully', $response);
} catch(ApiException $error) {
var_dump('API called failed', $error);
}
[Back to top] [Back to API list] [Back to README]
Method: consumersAdd
Apideck->getVaultApi()->consumersAdd($data)
Name | Type | Description | Notes |
---|---|---|---|
consumer | \Apideck\Client\Model\Consumer | ||
x_apideck_app_id | string | The ID of your Unify application |
\Apideck\Client\Model\CreateConsumerResponse
Status code | Description |
---|---|
200 | Consumer created |
400 | Bad Request |
401 | Unauthorized |
402 | Payment Required |
404 | The specified resource was not found |
422 | Unprocessable |
4/5xx | Unexpected error |
<?php
require('vendor/autoload.php');
use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;
$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');
$apideck = new Apideck($config);
try {
$response = $apideck->getVaultApi()->consumersAdd($consumer);
var_dump('API called successfully', $response);
} catch(ApiException $error) {
var_dump('API called failed', $error);
}
[Back to top] [Back to API list] [Back to README]
Method: consumersAll
Apideck->getVaultApi()->consumersAll($data)
Name | Type | Description | Notes |
---|---|---|---|
x_apideck_app_id | string | The ID of your Unify application | |
cursor | string | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | |
limit | [int] | Number of results to return. Minimum 1, Maximum 200, Default 20 | (optional) defaults to 20 |
\Apideck\Client\Model\GetConsumersResponse
Status code | Description |
---|---|
200 | Consumers |
400 | Bad Request |
401 | Unauthorized |
402 | Payment Required |
404 | The specified resource was not found |
422 | Unprocessable |
4/5xx | Unexpected error |
<?php
require('vendor/autoload.php');
use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;
$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');
$apideck = new Apideck($config);
try {
$response = $apideck->getVaultApi()->consumersAll();
var_dump('API called successfully', $response);
} catch(ApiException $error) {
var_dump('API called failed', $error);
}
[Back to top] [Back to API list] [Back to README]
Method: consumersDelete
Apideck->getVaultApi()->consumersDelete($data)
Name | Type | Description | Notes |
---|---|---|---|
consumer_id | string | ID of the consumer to return | |
x_apideck_app_id | string | The ID of your Unify application |
\Apideck\Client\Model\DeleteConsumerResponse
Status code | Description |
---|---|
200 | Consumer deleted |
400 | Bad Request |
401 | Unauthorized |
402 | Payment Required |
404 | The specified resource was not found |
422 | Unprocessable |
4/5xx | Unexpected error |
<?php
require('vendor/autoload.php');
use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;
$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');
$apideck = new Apideck($config);
try {
$response = $apideck->getVaultApi()->consumersDelete('test_user_id');
var_dump('API called successfully', $response);
} catch(ApiException $error) {
var_dump('API called failed', $error);
}
[Back to top] [Back to API list] [Back to README]
Method: consumersOne
Apideck->getVaultApi()->consumersOne($data)
Name | Type | Description | Notes |
---|---|---|---|
consumer_id | string | ID of the consumer to return | |
x_apideck_app_id | string | The ID of your Unify application |
\Apideck\Client\Model\GetConsumerResponse
Status code | Description |
---|---|
200 | Consumer |
400 | Bad Request |
401 | Unauthorized |
402 | Payment Required |
404 | The specified resource was not found |
422 | Unprocessable |
4/5xx | Unexpected error |
<?php
require('vendor/autoload.php');
use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;
$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');
$apideck = new Apideck($config);
try {
$response = $apideck->getVaultApi()->consumersOne('test_user_id');
var_dump('API called successfully', $response);
} catch(ApiException $error) {
var_dump('API called failed', $error);
}
[Back to top] [Back to API list] [Back to README]
Method: consumersUpdate
Apideck->getVaultApi()->consumersUpdate($data)
Name | Type | Description | Notes |
---|---|---|---|
consumer_id | string | ID of the consumer to return | |
update_consumer_request | \Apideck\Client\Model\UpdateConsumerRequest | ||
x_apideck_app_id | string | The ID of your Unify application |
\Apideck\Client\Model\UpdateConsumerResponse
Status code | Description |
---|---|
200 | Consumer updated |
400 | Bad Request |
401 | Unauthorized |
402 | Payment Required |
404 | The specified resource was not found |
422 | Unprocessable |
4/5xx | Unexpected error |
<?php
require('vendor/autoload.php');
use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;
$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');
$apideck = new Apideck($config);
try {
$response = $apideck->getVaultApi()->consumersUpdate('test_user_id', $consumer);
var_dump('API called successfully', $response);
} catch(ApiException $error) {
var_dump('API called failed', $error);
}
[Back to top] [Back to API list] [Back to README]
Method: createCallbackState
Apideck->getVaultApi()->createCallbackState($data)
Name | Type | Description | Notes |
---|---|---|---|
service_id | string | Service ID of the resource to return | |
unified_api | string | Unified API | |
create_callback_state_data | \Apideck\Client\Model\CreateCallbackStateData | Callback state data | |
x_apideck_consumer_id | string | ID of the consumer which you want to get or push data from | |
x_apideck_app_id | string | The ID of your Unify application |
\Apideck\Client\Model\CreateCallbackStateResponse
Status code | Description |
---|---|
200 | Callback state created |
400 | Bad Request |
401 | Unauthorized |
402 | Payment Required |
404 | The specified resource was not found |
422 | Unprocessable |
4/5xx | Unexpected error |
<?php
require('vendor/autoload.php');
use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;
$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');
$apideck = new Apideck($config);
try {
$response = $apideck->getVaultApi()->createCallbackState('pipedrive', 'crm', $createCallbackState);
var_dump('API called successfully', $response);
} catch(ApiException $error) {
var_dump('API called failed', $error);
}
[Back to top] [Back to API list] [Back to README]
Method: customFieldsAll
Apideck->getVaultApi()->customFieldsAll($data)
Name | Type | Description | Notes |
---|---|---|---|
unified_api | string | Unified API | |
service_id | string | Service ID of the resource to return | |
resource | string | Name of the resource (plural) | |
x_apideck_consumer_id | string | ID of the consumer which you want to get or push data from | |
x_apideck_app_id | string | The ID of your Unify application | |
resource_id | string | This is the id of the resource you want to fetch when listing custom fields. For example, if you want to fetch custom fields for a specific contact, you would use the contact id. |
\Apideck\Client\Model\GetCustomFieldsResponse
Status code | Description |
---|---|
200 | Custom mapping |
400 | Bad Request |
401 | Unauthorized |
402 | Payment Required |
404 | The specified resource was not found |
422 | Unprocessable |
4/5xx | Unexpected error |
<?php
require('vendor/autoload.php');
use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;
$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');
$apideck = new Apideck($config);
try {
$response = $apideck->getVaultApi()->customFieldsAll('crm', 'pipedrive', 'leads');
var_dump('API called successfully', $response);
} catch(ApiException $error) {
var_dump('API called failed', $error);
}
[Back to top] [Back to API list] [Back to README]
Method: customMappingsAll
Apideck->getVaultApi()->customMappingsAll($data)
Name | Type | Description | Notes |
---|---|---|---|
unified_api | string | Unified API | |
service_id | string | Service ID of the resource to return | |
x_apideck_consumer_id | string | ID of the consumer which you want to get or push data from | |
x_apideck_app_id | string | The ID of your Unify application |
\Apideck\Client\Model\GetCustomMappingsResponse
Status code | Description |
---|---|
200 | Custom mapping |
400 | Bad Request |
401 | Unauthorized |
402 | Payment Required |
404 | The specified resource was not found |
422 | Unprocessable |
4/5xx | Unexpected error |
<?php
require('vendor/autoload.php');
use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;
$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');
$apideck = new Apideck($config);
try {
$response = $apideck->getVaultApi()->customMappingsAll('crm', 'pipedrive');
var_dump('API called successfully', $response);
} catch(ApiException $error) {
var_dump('API called failed', $error);
}
[Back to top] [Back to API list] [Back to README]
Method: logsAll
Apideck->getVaultApi()->logsAll($data)
Name | Type | Description | Notes |
---|---|---|---|
x_apideck_app_id | string | The ID of your Unify application | |
x_apideck_consumer_id | string | ID of the consumer which you want to get or push data from | |
filter | \Apideck\Client\Model\LogsFilter | Filter results | |
cursor | string | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | |
limit | [int] | Number of results to return. Minimum 1, Maximum 200, Default 20 | (optional) defaults to 20 |
\Apideck\Client\Model\GetLogsResponse
Status code | Description |
---|---|
200 | Logs |
400 | Bad Request |
401 | Unauthorized |
402 | Payment Required |
404 | The specified resource was not found |
422 | Unprocessable |
4/5xx | Unexpected error |
<?php
require('vendor/autoload.php');
use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;
$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');
$apideck = new Apideck($config);
try {
$response = $apideck->getVaultApi()->logsAll();
var_dump('API called successfully', $response);
} catch(ApiException $error) {
var_dump('API called failed', $error);
}
[Back to top] [Back to API list] [Back to README]
Method: sessionsCreate
Apideck->getVaultApi()->sessionsCreate($data)
Name | Type | Description | Notes |
---|---|---|---|
x_apideck_consumer_id | string | ID of the consumer which you want to get or push data from | |
x_apideck_app_id | string | The ID of your Unify application | |
session | \Apideck\Client\Model\Session | Additional redirect uri and/or consumer metadata |
\Apideck\Client\Model\CreateSessionResponse
Status code | Description |
---|---|
200 | Session created |
400 | Bad Request |
401 | Unauthorized |
402 | Payment Required |
404 | The specified resource was not found |
422 | Unprocessable |
4/5xx | Unexpected error |
<?php
require('vendor/autoload.php');
use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;
$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');
$apideck = new Apideck($config);
try {
$response = $apideck->getVaultApi()->sessionsCreate($session);
var_dump('API called successfully', $response);
} catch(ApiException $error) {
var_dump('API called failed', $error);
}
[Back to top] [Back to API list] [Back to README]
Method: validateConnectionState
Apideck->getVaultApi()->validateConnectionState($data)
Name | Type | Description | Notes |
---|---|---|---|
service_id | string | Service ID of the resource to return | |
unified_api | string | Unified API | |
x_apideck_consumer_id | string | ID of the consumer which you want to get or push data from | |
x_apideck_app_id | string | The ID of your Unify application | |
body | object |
\Apideck\Client\Model\ValidateConnectionStateResponse
Status code | Description |
---|---|
200 | Connection access token refreshed |
400 | Bad Request |
401 | Unauthorized |
402 | Payment Required |
404 | The specified resource was not found |
422 | Unprocessable |
4/5xx | Unexpected error |
<?php
require('vendor/autoload.php');
use Apideck\Client\Apideck;
use Apideck\Client\ApideckConfiguration;
use Apideck\Client\ApiException;
$config = new ApideckConfiguration('<insert-api-key-here>', '<insert-application-id-here>', '<insert-consumer-id-here>', '<insert-service-id-here>');
$apideck = new Apideck($config);
try {
$response = $apideck->getVaultApi()->validateConnectionState('pipedrive', 'crm', $validateConnectionState);
var_dump('API called successfully', $response);
} catch(ApiException $error) {
var_dump('API called failed', $error);
}