Added ability to grab oembed html given a tweet id. #135

Merged
notthatbreezy merged 1 commit from oembed_branch into master 2012-12-14 04:07:07 -08:00
notthatbreezy commented 2012-12-06 14:09:17 -08:00 (Migrated from github.com)

Needed to grab the oEmbed code to embed tweets for a site I'm working on that automatically grabs twitter data from a set of users. Not really much to it, but thought I would share.

Example code:

t = Twython(app_key=twitter_app_key,
        app_secret=twitter_app_secret,
        oauth_token=twitter_oauth_token,
        oauth_token_secret=twitter_oauth_token_secret)

t.getOembedTweet(id='insert tweet id')

This will return a json object with author_name, author_url, cache_age, height, html, provider_name, provider_url, url, version, and width.

Needed to grab the oEmbed code to embed tweets for a site I'm working on that automatically grabs twitter data from a set of users. Not really much to it, but thought I would share. Example code: ``` t = Twython(app_key=twitter_app_key, app_secret=twitter_app_secret, oauth_token=twitter_oauth_token, oauth_token_secret=twitter_oauth_token_secret) t.getOembedTweet(id='insert tweet id') ``` This will return a json object with author_name, author_url, cache_age, height, html, provider_name, provider_url, url, version, and width.
ryanmcgrath commented 2012-12-14 04:07:10 -08:00 (Migrated from github.com)

Merged. Thanks!

Merged. Thanks!
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: code/twython#135
No description provided.