Skip to content

Instantly share code, notes, and snippets.

@ukstudio
Created January 28, 2010 10:14
Show Gist options
  • Select an option

  • Save ukstudio/288603 to your computer and use it in GitHub Desktop.

Select an option

Save ukstudio/288603 to your computer and use it in GitHub Desktop.
CONSUMER_KEY = ''
CONSUMER_SECRET = ''
BASE_URL = 'http://api.mixi-platform.com/os/0.8'
require 'rubygems'
require 'oauth'
require 'json'
requester_id = 1555125
consumer = OAuth::Consumer.new(CONSUMER_KEY, CONSUMER_SECRET,
:site => BASE_URL,
:xoauth_requester_id => requester_id
)
access_token = OAuth::AccessToken.new consumer
response = access_token.get("/people/@me/@self")
p response.body
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment