Skip to content

Commit

Permalink
added authorized access token constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
reiven committed Jan 17, 2012
1 parent b99706d commit 115b2fc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.mkdn
Expand Up @@ -26,10 +26,11 @@ Example usage
import pynientos

client = pynientos.pynilib.Pynientos(key='consumer key', secret='consumer secret')

# if you already have a token and token_secret, you can call the lib like this
client = pynientos.pynilib.Pynientos(key='consumer_key', secret='consumer_secret',token='token_key',token_secret='token_secret')

# get last photo of my photo stream
# get last photo of a photo stream
client.photos_user(username="reiven",sort="created_at_",rpp="1")

# get lastest 5 photos from editors choice
Expand All @@ -38,6 +39,9 @@ Example usage
# get the detail of a photo, at largest size and comments
client.photo_detail(id="1857992",image_size="4",comments="1")

# get authorized user profile (if token and token_secret was provided)
client.user()


License
-------
Expand Down

0 comments on commit 115b2fc

Please sign in to comment.