Skip to content

orlando/discourse_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

044d264 · Nov 6, 2013

History

64 Commits
Oct 9, 2013
Nov 6, 2013
Nov 6, 2013
Oct 7, 2013
Nov 6, 2013
Jul 9, 2013
Jul 11, 2013
Jul 11, 2013
Sep 16, 2013
Nov 6, 2013
Nov 6, 2013
Sep 27, 2013

Repository files navigation

DiscourseApi

Code Climate

The Discourse API gem allows you to consume the Discourse API

Installation

Add this line to your application's Gemfile:

gem 'discourse_api'

And then execute:

$ bundle

Or install it yourself as:

$ gem install discourse_api

Usage

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]")

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

Ruby API for Discourse

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%