Ruby gem for posting to Kinja (currently only supports Burner accounts)
Add this line to your application's Gemfile:
gem 'kinja'
And then execute:
$ bundle
Or install it yourself as:
$ gem install kinja
# Create an instance of the kinja client
client = Kinja.new(
user: "username",
password: "password"
)
# Create a post
post = client.create_post(
headline: '', # required
body: '<p>This is a post</p>', # required
status: 'PUBLISHED', # optional (default is "DRAFT")
replies: false # optional (default is true)
)
# Get a post
post = client.get_post("http://gawker.com/lapd-claims-the-jinx-had-nothing-to-do-with-robert-durs-1691730232")
# ...OR...
post = client.get_post("1691730232")
- Bump version in version.rb
rake build
rake release
- Fork it ( https://github.com/adampash/kinja/fork )
- Setup .env file with a test burner account
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes with tests (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request