2017 © Pedro Peláez
 

library php-sdk

softgarden PHP SDK

image

softgarden/php-sdk

softgarden PHP SDK

  • Friday, May 8, 2015
  • by schueffi
  • Repository
  • 1 Watchers
  • 0 Stars
  • 94 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 38 % Grown

The README.md

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)

Usage

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);
  }
}

Tests

Currently, there is no test coverage, as we just started to develop this sdk., (*5)

Contributing

Currently, there is no way to externally copntribute to our sdk., (*6)

Report Issues/Bugs

Bugs, (*7)

Questions, (*8)

The Versions

08/05 2015

dev-master

9999999-dev https://github.com/softgarden-developers/softgarden-php-sdk

softgarden PHP SDK

  Sources   Download

Apache2

The Requires

  • php >=5.2.0
  • ext-curl *
  • ext-json *

 

sdk softgarden