2017 © Pedro PelĂĄez
 

library dribbble-php

PHP wrapper for the Dribbble API.

image

martinbean/dribbble-php

PHP wrapper for the Dribbble API.

  • Friday, January 29, 2016
  • by martinbean
  • Repository
  • 3 Watchers
  • 82 Stars
  • 181 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 16 Forks
  • 1 Open issues
  • 5 Versions
  • 1 % Grown

The README.md

PHP Wrapper for Dribbble API

Installation

$ composer require "martinbean/dribbble-php=4.*"

Usage

Instantiate the client:, (*1)

$client = new Dribbble\Client;

Set the access token if you have one:, (*2)

$client->setAccessToken('Your access token');

Perform requests against Dribbble’s API:, (*3)

try {
    $response = $client->makeRequest('/user', 'GET');
} catch (Exception $e) {
    print $e->getMessage();
}

The client will either return an object, or throw one of the following exceptions:, (*4)

  • Dribbble\Exception\BadRequestException
  • Dribbble\Exception\TooManyRequestsException
  • Dribbble\Exception\UnauthorizedException
  • Dribbble\Exception\UnprocessableEntityException

Dribbble’s API is rate-limited. If you exceed the limit, a TooManyRequestsException will be raised., (*5)

If you try to access a URI that requires authentication and you haven’t supplied an access token, then a UnauthorizedException will be raised., (*6)

UnprocessableEntityException refers to a validation error. You can fetch an array of the failed validation rules with the getErrors() method on the class:, (*7)

try {
    // Make request with data that fails validation
} catch (UnprocessableEntityException $e) {
    $errors = $e->getErrors();
}

License

Licensed under the MIT License., (*8)

Issues

Please report to: https://github.com/martinbean/dribbble-php/issues, (*9)

The Versions

29/01 2016

dev-master

9999999-dev

PHP wrapper for the Dribbble API.

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

api php dribbble

29/01 2016

dev-develop

dev-develop

PHP wrapper for the Dribbble API.

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

api php dribbble

29/01 2016

4.0.0

4.0.0.0

PHP wrapper for the Dribbble API.

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

api php dribbble

23/11 2012

2.2.0

2.2.0.0 http://martinbean.github.com/dribbble-php/

PHP wrapper for the Dribbble API.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Zach Dunn

api php dribbble

21/09 2012

2.1.0

2.1.0.0 http://martinbean.github.com/dribbble-php/

PHP wrapper for the Dribbble API.

  Sources   Download

MIT

by Zach Dunn

api php dribbble