Skip to content

redspider/Entrecredits-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Entrecredits API

This project provides a PHP wrapper to the Entrecredits OAuth API. The API allows you (the Consumer) to perform a number of operations, including credit transfers, on behalf of an Entrecredits user in a secure fashion.

It is recommended that developers intending to use the API have a passing familiarity with OAuth ( http://oauth.net/ ), although it is not necessary in order to use the wrapper.

Definitions

The API generally follows the OAuth terminology, the following terms will be useful in understanding this document:

  • Service Provider
In this case, the Service Provider is Entrecredits.
  • Consumer
The Consumer is the web service accessing the Service Provider on behalf of the User. In this case, the Consumer is probably you.
  • User
The User is the account on whose behalf the Consumer is operating.

Installation

Simply include EccOAuth.php and OAuth.php in your project. You may optionally want to include the examples such as cointoss.php for reference. The Curl PHP extension is required, and the json_decode function must be available (PHP 5.2 onwards natively).

Quick start

Introduction

ECC uses an HTTP API with JSON returns, authorized by OAuth 1.0A. The EccOAuth.php library provides a wrapper over this, making integration reasonably straightforward without requiring excessive understanding of OAuth.

The API allows the application to act on behalf of a user. This is known as “3-legged auth”, in which the User asks the Consumer (application) to access ECC and perform some action(s).

Accessible methods

For a list of accessible methods, see the class EccClient in EccOAuth.php and examples in cointoss.php.

Questions

If you have any questions regarding the API at the moment, please contact Richard Clark <richard@redspider.co.nz>

About

API for access to Entrecredits

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages