Skip to content

Latest commit

 

History

History
513 lines (325 loc) · 12.8 KB

ConnectorApi.md

File metadata and controls

513 lines (325 loc) · 12.8 KB

Apideck.Connector

Class Name

ConnectorApi

Methods

Get API Resource Coverage

Method: apiResourceCoverageOne

Apideck->getConnectorApi()->apiResourceCoverageOne($data)

Parameters

Name Type Description Notes
id string ID of the record you are acting upon.
resource_id string ID of the resource you are acting upon.
x_apideck_app_id string The ID of your Unify application

Response Type

\Apideck\Client\Model\GetApiResourceCoverageResponse

HTTP response details

Status code Description
200 ApiResources
401 Unauthorized
402 Payment Required
404 The specified resource was not found
4/5xx Unexpected error

Example Usage

<?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->getConnectorApi()->apiResourceCoverageOne('id_example', 'resource_id_example');
  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]

Get API Resource

Method: apiResourcesOne

Apideck->getConnectorApi()->apiResourcesOne($data)

Parameters

Name Type Description Notes
id string ID of the record you are acting upon.
resource_id string ID of the resource you are acting upon.
x_apideck_app_id string The ID of your Unify application

Response Type

\Apideck\Client\Model\GetApiResourceResponse

HTTP response details

Status code Description
200 ApiResources
401 Unauthorized
402 Payment Required
404 The specified resource was not found
4/5xx Unexpected error

Example Usage

<?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->getConnectorApi()->apiResourcesOne('id_example', 'resource_id_example');
  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]

List APIs

Method: apisAll

Apideck->getConnectorApi()->apisAll($data)

Parameters

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.
filter \Apideck\Client\Model\ApisFilter Apply filters
limit [int] Number of results to return. Minimum 1, Maximum 200, Default 20 (optional) defaults to 20

Response Type

\Apideck\Client\Model\GetApisResponse

HTTP response details

Status code Description
200 Apis
400 Bad Request
401 Unauthorized
402 Payment Required
4/5xx Unexpected error

Example Usage

<?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->getConnectorApi()->apisAll();
  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]

Get API

Method: apisOne

Apideck->getConnectorApi()->apisOne($data)

Parameters

Name Type Description Notes
id string ID of the record you are acting upon.
x_apideck_app_id string The ID of your Unify application

Response Type

\Apideck\Client\Model\GetApiResponse

HTTP response details

Status code Description
200 Apis
401 Unauthorized
402 Payment Required
404 The specified resource was not found
4/5xx Unexpected error

Example Usage

<?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->getConnectorApi()->apisOne('id_example');
  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]

Get Connector Doc Content

Method: connectorDocsOne

Apideck->getConnectorApi()->connectorDocsOne($data)

Parameters

Name Type Description Notes
id string ID of the record you are acting upon.
doc_id string ID of the Doc
x_apideck_app_id string The ID of your Unify application

Response Type

string

HTTP response details

Status code Description
200 Connectors
401 Unauthorized
402 Payment Required
404 The specified resource was not found
4/5xx Unexpected error

Example Usage

<?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->getConnectorApi()->connectorDocsOne('id_example', 'application_owner+oauth_credentials');
  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]

Get Connector Resource

Method: connectorResourcesOne

Apideck->getConnectorApi()->connectorResourcesOne($data)

Parameters

Name Type Description Notes
id string ID of the record you are acting upon.
resource_id string ID of the resource you are acting upon.
x_apideck_app_id string The ID of your Unify application
unified_api \Apideck\Client\Model\UnifiedApiId Specify unified API for the connector resource. This is useful when a resource appears in multiple APIs

Response Type

\Apideck\Client\Model\GetConnectorResourceResponse

HTTP response details

Status code Description
200 ConnectorResources
401 Unauthorized
402 Payment Required
404 The specified resource was not found
4/5xx Unexpected error

Example Usage

<?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->getConnectorApi()->connectorResourcesOne('id_example', 'resource_id_example');
  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]

List Connectors

Method: connectorsAll

Apideck->getConnectorApi()->connectorsAll($data)

Parameters

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.
filter \Apideck\Client\Model\ConnectorsFilter Apply filters
limit [int] Number of results to return. Minimum 1, Maximum 200, Default 20 (optional) defaults to 20

Response Type

\Apideck\Client\Model\GetConnectorsResponse

HTTP response details

Status code Description
200 Connectors
400 Bad Request
401 Unauthorized
402 Payment Required
4/5xx Unexpected error

Example Usage

<?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->getConnectorApi()->connectorsAll();
  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]

Get Connector

Method: connectorsOne

Apideck->getConnectorApi()->connectorsOne($data)

Parameters

Name Type Description Notes
id string ID of the record you are acting upon.
x_apideck_app_id string The ID of your Unify application

Response Type

\Apideck\Client\Model\GetConnectorResponse

HTTP response details

Status code Description
200 Connectors
401 Unauthorized
402 Payment Required
404 The specified resource was not found
4/5xx Unexpected error

Example Usage

<?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->getConnectorApi()->connectorsOne('id_example');
  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]