Skip to content

bdares/me2day

Repository files navigation

The Me2day Ruby Gem

A Ruby interface to the M2day API. Based on the twitter gem.

Authorization

    Me2day.configure do |config|
      config.application_key = 'my_application_key'
    end
  • Redirect the user to the authorization URL:
    redirect_to Me2day.auth_url

or

    <%= link_to 'Log in', Me2day.auth_url %>

Basic Usage

  • Configure Me2day with your credentials:
    Me2day.configure do |config|
      config.application_key = 'my_application_key'
      config.user_id = 'user_id'
      config.user_key = 'user_key'
    end
  • Instantiate a client:
    client = Me2day::Client.new
  • Call the API:
    client.noop
    client.get_posts("codian", :from => '20120101').each do |post|
      puts "#{post.author.name}: #{post.pubDate} : #{post.content}"
    end

About

Ruby interface for Me2day API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages