2017 © Pedro Peláez
 

library sparkapi

PHP wrapper for the Spark REST API

image

sparkapi/sparkapi

PHP wrapper for the Spark REST API

  • Thursday, April 12, 2018
  • by sparkapi
  • Repository
  • 13 Watchers
  • 18 Stars
  • 6,875 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 19 Forks
  • 6 Open issues
  • 2 Versions
  • 6 % Grown

The README.md

Build Status, (*1)

Spark API - version 2

A PHP wrapper for the Spark REST API. This version has enough differences from version 1 that upgrading will require changes to existing code., (*2)

Documentation

For additional information on the PHP client, visit the wiki., (*3)

For full information on the API, see http://sparkplatform.com/docs, (*4)

Usage Examples

// include the Spark core which autoloads other classes as necessary
require_once("lib/Core.php");

// connect using Access Token Authentication (additional authentication methods available in the wiki)
$api = new SparkAPI_Bearer("your_access_token_here");

// identify your application (optional)
$api->SetApplicationName("MyPHPApplication/1.0");


// get your listings
$result = $api->GetMyListings();

/*
    Alternatively, if you cannot find the appropriate helper method,
    try our "get", "post", "put", or "delete" methods from Core.php. 
*/
$result = $api->get("my/listings");

// see the included examples.php for more complete usage

Error Codes

A list of all API error codes can be found here., (*5)

The Versions

12/04 2018

dev-master

9999999-dev http://github.com/sparkapi/sparkapi4p2

PHP wrapper for the Spark REST API

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

spark sparkapi

22/03 2018

dev-examples

dev-examples http://github.com/sparkapi/sparkapi4p2

PHP wrapper for the Spark REST API

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

spark sparkapi