forked from jakubzapletal/disqus-php
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
disqus-python | ||
~~~~~~~~~~~~~ | ||
|
||
Use the API by instantiating it, and then calling the method through dotted notation chaining: | ||
|
||
require('disqusapi/disqusapi.php'); | ||
$disqus = new DisqusAPI($secret_key) | ||
$disqus->trends->listThreads() | ||
|
||
Parameters (including the ability to override version, api_secret, and format) are passed as keyword arguments to the resource call: | ||
|
||
$disqus->posts->details(array($post=>1, $version=>'3.0')); | ||
|
||
Documentation on all methods, as well as general API usage can be found at http://disqus.com/api/ |