Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save cchamikara/7595e749bdc3e9e81aa509b3f8daa975 to your computer and use it in GitHub Desktop.
Save cchamikara/7595e749bdc3e9e81aa509b3f8daa975 to your computer and use it in GitHub Desktop.
require_once('../autoload.php');
const API_KEY = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJqdGkiOiI0Yzg1NWEyMC0zMmM2LTExZTYtOTVkNy0xZGZmMzE0NzdmYTMiLCJzdWIiOiJTSE9VVE9VVF9BUElfVVNFUiIsImlhdCI6MTQ2NTk3Mzc5NSwiZXhwIjoxNzgxNTA2NTk1LCJzY29wZXMiOnsiY29udGFjdHMiOlsicmVhZCIsIndyaXRlIl0sImFjdGl2aXRpZXMiOlsid3JpdGUiLCJyZWFkIl0sIm1lc3NhZ2VzIjpbIndyaXRlIiwicmVhZCJdfSwic29fdXNlcl9pZCI6IjMxNiIsInNvX3VzZXJfcm9sZSI6InVzZXIiLCJzb19wcm9maWxlIjoiYWxsIiwic29fdXNlcl9uYW1lIjoiIiwic29fYXBpa2V5Ijoibm9uZSJ9.sUUyayg9z4ONzahZDKa8CYpXrd98nPZEmjPh_4L-O-k';
// Configure API key authorization: ShoutOUTCustomAuthorizer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', API_KEY);
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$api_instance = new Swagger\Client\Api\DefaultApi();
$activity = new \Swagger\Client\Model\Activity(); // \Swagger\Client\Model\Activity |
$authorization = "authorization_example"; // string |
try {
$result = $api_instance->activitiesPost($activity, API_KEY);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->activitiesPost: ', $e->getMessage(), PHP_EOL;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment