2017 © Pedro Peláez
 

library api-client

image

scigroup/api-client

  • Thursday, September 28, 2017
  • by ruFog
  • Repository
  • 2 Watchers
  • 0 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

The client library to query API

Usage

  • Get a client_id/client_secret pair with ROLE_OAUTH_SERVER role.
  • Initialize an object of the Client class for making requests.

ROLE_OAUTH_SERVER gives access to the following methods

  • Client::eventSearch

ROLE_OAUTH_TRUSTED_SERVER gives access to the following methods

  • Client::requestPasswordResetting
  • Client::resetPassword

Example

// Implement HTTPTransportInterface interface
$authenticator = new OAuthAuthenticator('https://base/path/to/auth/endpoint', 'client_id', 'client_secret', new FileTokenStorage(), $HTTPTransport);
$client = new Client('https://base/path', $authenticator, $HTTPTransport);

The Versions

28/09 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

The Development Requires

28/09 2017
26/09 2017