Pytweena Reference

De NachE
Saltar a: navegación, buscar
  • THIS IS A DRAFT YET*

Here is the Pytweena Reference. Note that pytweena have methods with the same name of resources in Twitter REST v1.1 API


Contenido

class PytweenaAPI

Sample of how to use this lib:

#/usr/bin/env python
import pytweena

myapi = pytweena.api
myapi.auth()
myapi.auth('consumerkey', 'consumersecret', 'accesstoken', 'accesstokensecret')

myapi.method({'option1': 'value of option1', 'option2': 'value of option2'})

the available methods are listed below. The options are the same documented on Twitter REST v1.1 API. So, an example of valid method can be:

myapi.statuses_update{'status':'Hey, this is my first tweet!'}

Note that the option status are documented on POST statuses/update After a resource called, you can access json data:

print (myapi.jsondata)

Or you can access raw data:

print (myapi.data)

Also, the methods return raw data and response from Twitter API (HTTP Code)

response, data = myapi.statuses_home_timeline({'count': 10})
print (response)
print (data)

Timelines

pytweena.api.statuses_mentions_timeline(parameters = {})

pytweena.api.statuses_user_timeline(parameters = {})

pytweena.api.statuses_home_timeline(parameters = {})

pytweena.api.statuses_retweets_of_me(parameters = {})


Tweets

pytweena.api.statuses_retweets(parameters = {})

pytweena.api.statuses_show(parameters = {})

pytweena.api.statuses_destroy(parameters = {})

pytweena.api.statuses_update(parameters = {})

pytweena.api.statuses_retweet(parameters = {})

pytweena.api.statuses_update_with_media(parameters = {})

pytweena.api.statuses_oembed(parameters = {})

pytweena.api.statuses_retweeters_ids(parameters = {})


Search

pytweena.api.search_tweets(parameters = {})


Direct Messages

pytweena.api.direct_messages(parameters = {})

pytweena.api.direct_messages_sent(parameters = {})

pytweena.api.direct_messages_show(parameters = {})

pytweena.api.direct_messages_destroy(parameters = {})

pytweena.api.direct_messages_new(parameters = {})


Friends & Followers

pytweena.api.friendships_no_retweets_ids(parameters = {})

pytweena.api.friends_ids(parameters = {})

pytweena.api.followers_ids(parameters = {})

pytweena.api.friendships_lookup(parameters = {})

pytweena.api.friendships_incoming(parameters = {})

pytweena.api.friendships_outgoing(parameters = {})

pytweena.api.friendships_create(parameters = {})

pytweena.api.friendships_destroy(parameters = {})

pytweena.api.friendships_update(parameters = {})

pytweena.api.friendships_show(parameters = {})

pytweena.api.friends_list(parameters = {})

pytweena.api.followers_list(parameters = {})


Users

pytweena.api.account_settings(parameters = {})

pytweena.api.account_verify_credentials(parameters = {})

pytweena.api.account_settings(parameters = {})

pytweena.api.account_update_delivery_device(parameters = {})

pytweena.api.account_update_profile(parameters = {})

pytweena.api.account_update_profile_background_image(parameters = {})

pytweena.api.account_update_profile_colors(parameters = {})

pytweena.api.account_update_profile_image(parameters = {})

pytweena.api.blocks_list(parameters = {})

pytweena.api.blocks_ids(parameters = {})

pytweena.api.blocks_create(parameters = {})

pytweena.api.blocks_destroy(parameters = {})

pytweena.api.users_lookup(parameters = {})

pytweena.api.users_show(parameters = {})

pytweena.api.users_search(parameters = {})

pytweena.api.users_contributees(parameters = {})

pytweena.api.users_contributors(parameters = {})

pytweena.api.account_remove_profile_banner(parameters = {})

pytweena.api.account_update_profile_banner(parameters = {})

pytweena.api.users_profile_banner(parameters = {})


Suggested Users

pytweena.api.users_suggestions_slug(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]

pytweena.api.users_suggestions(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]

pytweena.api.users_suggestions_slug_members(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]


Favorites

pytweena.api.favorites_list(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]

pytweena.api.favorites_destroy(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]

pytweena.api.favorites_create(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]


Lists

pytweena.api.lists_list(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]

pytweena.api.lists_statuses(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]

pytweena.api.lists_members_destroy(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]

pytweena.api.lists_memberships(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]

pytweena.api.lists_subscribers(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]

pytweena.api.lists_subscribers_create(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]

pytweena.api.lists_subscribers_show(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]

pytweena.api.lists_subscribers_destroy(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]

pytweena.api.lists_members_create_all(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]

pytweena.api.lists_members_show(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]

pytweena.api.lists_members(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]

pytweena.api.lists_members_create(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]

pytweena.api.lists_destroy(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]

pytweena.api.lists_update(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]

pytweena.api.lists_create(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]

pytweena.api.lists_show(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]

pytweena.api.lists_subscriptions(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]

pytweena.api.lists_members_destroy_all(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]

pytweena.api.lists_ownerships(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]


Saved Searches

pytweena.api.saved_searches_list(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]

pytweena.api.saved_searches_show(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]

pytweena.api.saved_searches_create(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]

pytweena.api.saved_searches_destroy(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]


Places & Geo

pytweena.api.geo_id(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]

pytweena.api.geo_reverse_geocode(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]

pytweena.api.geo_search(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]

pytweena.api.geo_similar_places(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]

pytweena.api.geo_place(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]


Trends

pytweena.api.trends_place(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]

pytweena.api.trends_available(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]

pytweena.api.trends_closest(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]


Spam Reporting

pytweena.api.users_report_spam(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]


Help

pytweena.api.help_configuration(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]

pytweena.api.help_languages(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]

pytweena.api.help_privacy(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]

pytweena.api.help_tos(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]

pytweena.api.application_rate_limit_status(parameters = {})

  • Parameters documented on [url Desc]
  • return [response, data]