Skip to content

compwright/disguz

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 

Disguz

An unofficial Disqus API client based on the Guzzle 3 PHP library.

Usage

Get a Disguz instance by calling the factory method. Pass in an array of configuration settings:

$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:

$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.

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.

Threads

Posts

About

An unofficial Disqus API client for PHP based on Guzzle

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages