A PHP wrapper for the flexmls REST API.
Branch: master
Clone or download
dgmyrek Merge pull request #46 from apopkin/master
Fixed a bug at line 505
Latest commit 84ad7ee Nov 5, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib Fixed a bug at line 505 Nov 5, 2018
tests add phpunit Feb 27, 2018
.gitignore remove User-Agent, add gitignore Nov 29, 2017
.travis.yml drop php 5 entirely Feb 28, 2018
LICENSE Initial push to GitHub Feb 6, 2012
README.md Update README.md Mar 21, 2018
composer.json add phpunit Feb 27, 2018
examples.php Update examples.php Mar 21, 2018
index.php cleanup Nov 29, 2017
phpunit.xml Added a phpunit.xml to handle the test bootstrapping, so that the tes… Oct 22, 2012


Build Status

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.


For additional information on the PHP client, visit the wiki.

For full information on the API, see http://sparkplatform.com/docs

Usage Examples

// include the Spark core which autoloads other classes as necessary

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

// identify your application (optional)

// 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.