library campaign-drive-api-client
pica9/campaign-drive-api-client
- Tuesday, May 3, 2016
- by rstrong-pica9
- Repository
- 3 Watchers
- 0 Stars
- 1 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 3 Versions
- 0 % Grown
CampaignDrive API Client for PHP
Usage
require_once 'autoload.php';
$api = new Pica9\CampaignDrive\ApiClient\DefaultApi;
$api->getApiClient()->getConfig()
->setHost('https://your-campaign-drive-domain.com');
try {
$token = $api->createToken(
"client_credentials",
"your-client-id",
"your-client-secret",
"read:document"
);
$api->getApiClient()->getConfig()
->setAccessToken($token->getAccessToken());
$doc = $api->getDocumentById(1);
echo $doc->getName();
} catch (\Pica9\CampaignDrive\ApiClient\ApiException $e) {
echo "Error encountered!\n";
echo $e->getResponseObject()->getReasonPhrase();
}
dev-master
9999999-dev
http://swagger.io
Sources
Download
Apache V2
The Requires
-
php >=5.3.3
-
ext-curl *
-
ext-json *
-
ext-mbstring *
The Development Requires
api
php
swagger
sdk
1.2.1
1.2.1.0
http://swagger.io
Sources
Download
Apache V2
The Requires
-
php >=5.3.3
-
ext-curl *
-
ext-json *
-
ext-mbstring *
The Development Requires
api
php
swagger
sdk
1.1.1
1.1.1.0
http://swagger.io
Sources
Download
Apache V2
The Requires
-
php >=5.3.3
-
ext-curl *
-
ext-json *
-
ext-mbstring *
The Development Requires
api
php
swagger
sdk