2017 © Pedro Peláez
 

library api-auth-client-plugin

Guzzle authentication plugin for Ruby's api_auth gem.

image

sanchobbdo/api-auth-client-plugin

Guzzle authentication plugin for Ruby's api_auth gem.

  • Wednesday, March 6, 2013
  • by camagu
  • Repository
  • 2 Watchers
  • 2 Stars
  • 58 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Guzzle Api Auth client plugin

Guzzle authentication plugin for mgomes' Ruby api_auth gem., (*1)

Installing

Create a composer.json file in the project root:, (*2)

{
    "require": {
        "sanchobbdo/api-auth-client-plugin": "~1.0.0",
        "guzzle/guzzle": "~3.1"
    }
}

Then download composer.phar and run the install command:, (*3)

curl -s http://getcomposer.org/installer | php && ./composer.phar install

Usage

<?php

// Include composer's autoload.
require 'vendor/autoload.php';

// Use required Guzzle classess.
use Guzzle\Http\Client;

// Use the api_auth plugin.
use SanchoBBDO\Guzzle\Plugin\ApiAuth\ApiAuthPlugin;

// Set up the Guzzle Client.
$client = new Client('http://your-host.com');

// Set up the api_auth plugin. Include your access id and secret key.
$apiAuthPlugin = new ApiAuthPlugin(array(
    'accessId' =>  'your-access-id',
    'secretKey' =>  'your-secret-key'
));

// Subscribe the plugin to client's events.
$client->addSubscriber($apiAuthPlugin);

// Enjoy!

License

Licensed under the MIT License., (*4)

The Versions

06/03 2013

dev-master

9999999-dev

Guzzle authentication plugin for Ruby's api_auth gem.

  Sources   Download

MIT

The Development Requires

authentication rest guzzle ruby api_auth

07/02 2013

1.0.0

1.0.0.0

Guzzle authentication plugin for Ruby's api_auth gem.

  Sources   Download

MIT

The Development Requires

authentication rest guzzle ruby api_auth