dev-master
9999999-dev https://github.com/softgarden-developers/softgarden-php-sdksoftgarden PHP SDK
Apache2
The Requires
- php >=5.2.0
- ext-curl *
- ext-json *
by softgarden
sdk softgarden
Wallogit.com
2017 © Pedro Peláez
softgarden PHP SDK
The softgarden-cloud API is a set of APIs that connect your app to the softgarden cloud ATS., (*1)
This repository contains the open source PHP SDK that allows you to access softgarden cloud API from your PHP app. Except as otherwise noted, the softgarden PHP SDK is licensed under the Apache Licence, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.html)., (*2)
The minimal you'll need to have is:, (*3)
require 'softgarden-php-sdk/src/Softgarden.php';
$softgarden = new Softgarden(array(
'appId' => 'YOUR_APP_ID',
'secret' => 'YOUR_APP_SECRET' // only required if your app has an secret
));
// call an API endpoint
$response = $softgarden->get('v2/frontend/me');
To make API calls, the general pattern is:, (*4)
try {
// make the api call, generic
$response = $softgarden->api('v2/frontend/me');
// make the api call, get
$response = $softgarden->get('v2/frontend/me', $optionalQueryParamsAsArray);
// make the api call, post
$response = $softgarden->post('v2/frontend/me', $optionalPostParamsAsArray);
// make the api call, put
$response = $softgarden->put('v2/frontend/me', $optionalPostParamsAsArray);
// make the api call, delete
$response = $softgarden->delete('v2/frontend/me', $optionalQueryParamsAsArray);
} catch (SoftgardenApiException $e) {
error_log($e);
}
}
Currently, there is no test coverage, as we just started to develop this sdk., (*5)
Currently, there is no way to externally copntribute to our sdk., (*6)
Bugs, (*7)
Questions, (*8)
softgarden PHP SDK
Apache2
sdk softgarden