The Discourse API gem allows you to consume the Discourse API
Add this line to your application's Gemfile:
gem 'discourse_api'
And then execute:
$ bundle
Or install it yourself as:
$ gem install discourse_api
Over time this project intends to have a full Discourse API, at the moment there is only one endpoint
client = DiscourseApi::Client.new("l.discourse")
client.api_key = "YOUR_API_KEY"
client.api_username = "YOUR_USERNAME"
client.topic_invite_user(topic_id: 1794, email: "[email protected]")
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request