Code Monkey home page Code Monkey logo

sparkapi4p2's Introduction

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.

Documentation

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

sparkapi4p2's People

Contributors

joshcom avatar donclem avatar thinkerytim avatar troydavisson avatar fbstim avatar dgmyrek avatar gsaulmon avatar calh avatar codygustafson avatar apopkin avatar mflatin avatar ridley-james avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.