Skip to content

watchmen/oa_test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oa_test: OAuth version 1.0x testing console
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

installation:
~~~~~~~~~~~~~
gem install oa_test


command console: 
~~~~~~~~~~~~~~~~

syntax:
oa_test [--consumer:token/secret] --yauth:login/passwd [--return:body|body_hash|boolean|object] [--host:host] [--api:path]
params --host must prefix with "http://"
params --api must prefix with "/"
Enjoy... 

Read config: ~/.oa_test

PATH: http://www.koprol.com/api/v2/..path..
Your instance object stored in OA|oa|http
The response object: http.resp
Ex: http.get '/me.json'

ree-2010.02 > http.get '/me.json'
 => "{"user":{...}}" 
ree-2010.02 > 


Ruby code: 
~~~~~~~~~~
oa = OAuthTest.new(
  :key    => 'consumer_token',
  :secret => 'consumer_secret'
).yauth(
  :login  => 'y_login',
  :passwd => 'y_password'
)
oa.get('/me.json')

========================
Thanks to: wh,rs,le,rchs
------------------------

About

ruby oauth test

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages