Disqussed
A simple wrapper around the Disqus V3 API.
Installation
Add this line to your application's Gemfile:
gem 'disqussed'
And then execute:
$ bundle
Or install it yourself as:
$ gem install disqussed
Configuration
Edit lib/disqussed.rb and add your api_key and access_token. These can be found on the application page for your app by going to http://disqus.com/api/applications and choosing your application.
Usage
Threads
Create
Required - forum, title
Options - none
Disqussed::Threads.create(forum, title)
Details
Required - thread
Options - none
Disqussed::Threads.details(thread)
Post Count
Required - thread
Options - none
Disqussed::Threads.post_count(thread)
Remove
Required - thread
Options - none
Disqussed::Threads.remove(thread)
Posts
Create
Required - message
Options - thread, author_email, author_name,
Disqussed::Post.create("message", { :thread => thread }).
List
Required - none Options - category, thread, forum, since, related, limit, offset, include, order
Disqussed::Post.list({ :thread => thread })
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request