2017 © Pedro Peláez
 

library disguz

Guzzle-based PHP client for the Disqus API

image

compwright/disguz

Guzzle-based PHP client for the Disqus API

  • Thursday, December 18, 2014
  • by compwright
  • Repository
  • 1 Watchers
  • 1 Stars
  • 141 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Disguz

An unofficial Disqus API client based on the Guzzle 3 PHP library., (*1)

Usage

Get a Disguz instance by calling the factory method. Pass in an array of configuration settings:, (*2)

$config = [
    'api_key' => getenv('DISQUS_API_KEY'),
    'api_secret' => getenv('DISQUS_API_SECRET'),
    'access_token' => getenv('DISQUS_ACCESS_TOKEN'),
];
$client = Disguz::factory($config);

Then call one of the supported methods. Pass method parameters as an array:, (*3)

$params = [
    'message' => 'This is another test post',
    'thread' => $argv[1],
];
$result = $client->postsCreate($params);

Supported Methods

The following methods are currently supported. For documentation on these API methods, visit https://disqus.com/api., (*4)

Support for additional methods is simply a matter of documenting them in src/resources/disqus.json, per the Guzzle docs. Please feel free to submit a pull request adding any methods from the Disqus API that you may require to this file., (*5)

Threads

Posts

The Versions

18/12 2014

dev-master

9999999-dev

Guzzle-based PHP client for the Disqus API

  Sources   Download

MIT

The Requires

 

api php disqus guzzle

18/12 2014

0.0.3

0.0.3.0

Guzzle-based PHP client for the Disqus API

  Sources   Download

MIT

The Requires

 

api php disqus guzzle

10/11 2014

0.0.2

0.0.2.0

Guzzle-based PHP client for the Disqus API

  Sources   Download

MIT

The Requires

 

api php disqus guzzle