Types
ConsumerToken = ref ConsumerTokenImpl
- Consumer token object with a consumerKey and consumerSecret
TwitterAPI = ref TwitterAPIImpl
- TwitterAPI token object with a consumerToken, accessToken, and accessTokenSecret
Procs
proc newConsumerToken(consumerKey, consumerSecret: string): ConsumerToken {...}{. raises: [], tags: [].}
proc newTwitterAPI(consumerToken: ConsumerToken; accessToken, accessTokenSecret: string): TwitterAPI {...}{.raises: [], tags: [].}
proc newTwitterAPI(consumerKey, consumerSecret, accessToken, accessTokenSecret: string): TwitterAPI {...}{. raises: [], tags: [].}
proc request(twitter: TwitterAPI; endPoint, httpMethod: string; additionalParams: StringTableRef = nil; requestUrl: string = baseUrl; data: string = ""): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
proc request(twitter: TwitterAPI; endPoint: string; jsonBody: JsonNode = nil; requestUrl: string = baseUrl): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- Request proc for endpoints requiring application/json bodies
proc get(twitter: TwitterAPI; endPoint: string; additionalParams: StringTableRef = nil; media: bool = false; publish: bool = false): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- Raw get proc. media optional parameter changes request URL to upload.twitter.com
proc post(twitter: TwitterAPI; endPoint: string; additionalParams: StringTableRef = nil; media: bool = false): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- Raw post proc. media optional parameter changes request URL to upload.twitter.com
proc post(twitter: TwitterAPI; endPoint: string; additionalParams: StringTableRef = nil; media: bool = false; data: string): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- Overload for post that includes binary data e.g. images / video to upload
proc post(twitter: TwitterAPI; endPoint: string; jsonBody: JsonNode; media: bool = false): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
proc delete(twitter: TwitterAPI; endPoint: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
proc put(twitter: TwitterAPI; endPoint: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
proc applicationRateLimitData(twitter: TwitterAPI; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- application/rate_limit_status.json endpoint
proc helpConfiguration(twitter: TwitterAPI; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- help/configuration.json endpoint
proc helpLanguages(twitter: TwitterAPI; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- help/languages.json endpoint
proc oauthAuthenticate(twitter: TwitterAPI; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- oauth/authenticate endpoint
proc oauthAuthorize(twitter: TwitterAPI; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- oauth/authorize endpoint
proc oauthAccessToken(twitter: TwitterAPI; oauthToken: string; oauthVerifier: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- oauth/access_token endpoint
proc oauthInvalidateToken(twitter: TwitterAPI; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- oauth/invalidate_token endpoint
proc oauthRequestToken(twitter: TwitterAPI; oauthCallback: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- oauth/request_token endpoint
proc oauth2InvalidateToken(twitter: TwitterAPI; accessToken: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- oauth2/invalidate_token endpoint
proc oauth2Token(twitter: TwitterAPI; grantType: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- oauth2/token endpoint
proc listsList(twitter: TwitterAPI; screenName: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- lists/list.json endpoint for screen name
proc listsList(twitter: TwitterAPI; userId: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- lists/list.json endpoint for user id
proc listsMembers(twitter: TwitterAPI; slug: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- lists/members.json endpoint for slug
proc listsMembers(twitter: TwitterAPI; listId: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- lists/members.json endpoint for list id
proc listsMembersShow(twitter: TwitterAPI; slug: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- lists/members/show.json endpoint for slug
proc listsMembersShow(twitter: TwitterAPI; listId: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- lists/members/show.json endpoint for list id
proc listsMemberships(twitter: TwitterAPI; screenName: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- lists/memberships.json endpoint for screen name
proc listsMemberships(twitter: TwitterAPI; userId: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- lists/memberships.json endpoint for user id
proc listsOwnerships(twitter: TwitterAPI; screenName: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- lists/ownerships.json endpoint for screen name
proc listsOwnerships(twitter: TwitterAPI; userId: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- lists/ownerships.json endpoint for user id
proc listsShow(twitter: TwitterAPI; slug: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- lists/show.json endpoint for slug
proc listsShow(twitter: TwitterAPI; listId: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- lists/show.json endpoint for list id
proc listsStatuses(twitter: TwitterAPI; slug: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- lists/statuses.json endpoint for slug
proc listsStatuses(twitter: TwitterAPI; listId: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- lists/statuses.json endpoint for list id
proc listsSubscribers(twitter: TwitterAPI; slug: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- lists/subscribers.json endpoint for slug
proc listsSubscribers(twitter: TwitterAPI; listId: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- lists/subscribers.json endpoint for list id
proc listsSubscribersShow(twitter: TwitterAPI; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- lists/subscribers/show.json endpoint
proc listsSubscriptions(twitter: TwitterAPI; screenName: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- lists/subscriptions.json endpoint for screen name
proc listsSubscriptions(twitter: TwitterAPI; userId: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- lists/subscriptions.json endpoint for user id
proc listsCreate(twitter: TwitterAPI; slug: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- lists/create.json endpoint for slug
proc listsCreate(twitter: TwitterAPI; listId: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- lists/create.json endpoint for list id
proc listsDestroy(twitter: TwitterAPI; slug: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- lists/destroy.json endpoint for slug
proc listsDestroy(twitter: TwitterAPI; listId: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- lists/destroy.json endpoint for list id
proc listsMembersCreate(twitter: TwitterAPI; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- lists/members/create.json endpoint
proc listsMembersCreateAll(twitter: TwitterAPI; listId: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- lists/members/create_all.json endpoint for list id
proc listsMembersCreateAll(twitter: TwitterAPI; slug: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- lists/members/create_all.json endpoint for slug
proc listsMembersDestroy(twitter: TwitterAPI; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- lists/members/destroy.json endpoint
proc listsMembersDestroyAll(twitter: TwitterAPI; listId: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- lists/members/destroy_all.json endpoint for list id
proc listsMembersDestroyAll(twitter: TwitterAPI; slug: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- lists/members/destroy_all.json endpoint for slug
proc listsSubscribersCreate(twitter: TwitterAPI; slug: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- lists/subscribers/create.json endpoint for slug
proc listsSubscribersCreate(twitter: TwitterAPI; listId: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- lists/subscribers/create.json endpoint for list id
proc listsSubscribersDestroy(twitter: TwitterAPI; slug: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- lists/subscribers/destroy.json endpoint for slug
proc listsSubscribersDestroy(twitter: TwitterAPI; listId: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- lists/subscribers/destroy.json endpoint for list id
proc listsUpdate(twitter: TwitterAPI; slug: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- lists/update.json endpoint for slug
proc listsUpdate(twitter: TwitterAPI; listId: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- lists/update.json endpoint for list id
proc followersIds(twitter: TwitterAPI; screenName: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- followers/ids.json endpoint for screen name
proc followersIds(twitter: TwitterAPI; userId: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- followers/id.json endpoint for user id
proc followersList(twitter: TwitterAPI; screenName: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- followers/list.json endpoint for screen name
proc followersList(twitter: TwitterAPI; userId: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- followers/list.json endpoint for user id
proc friendsIds(twitter: TwitterAPI; screenName: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- friends/ids.json endpoint for screen name
proc friendsIds(twitter: TwitterAPI; userId: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- friends/id.json endpoint for user id
proc friendsList(twitter: TwitterAPI; screenName: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- friends/list.json endpoint for screen name
proc friendsList(twitter: TwitterAPI; userId: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- friends/list.json endpoint for user id
proc friendshipsIncoming(twitter: TwitterAPI; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- friendships/incoming.json endpoint
proc friendshipsLookup(twitter: TwitterAPI; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- friendships/lookup.json endpoint
proc friendshipsNoRetweetsIds(twitter: TwitterAPI; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- friendships/no_retweets/ids.json
proc friendshipsOutgoing(twitter: TwitterAPI; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- friendships/outgoing.json endpoint
proc friendshipsShow(twitter: TwitterAPI; sourceId: int; targetId: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- friendships/show.json endpoint
proc friendshipsShow(twitter: TwitterAPI; sourceScreenName: string; targetScreenName: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- friendships/show.json endpoint
proc friendshipsCreate(twitter: TwitterAPI; screenName: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- friendships/create.json endpoint
proc friendshipsCreate(twitter: TwitterAPI; userId: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- friendships/create.json endpoint
proc friendshipsDestroy(twitter: TwitterAPI; screenName: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- friendships/destroy.json endpoint
proc friendshipsDestroy(twitter: TwitterAPI; userId: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- friendships/destroy.json endpoint
proc friendshipsUpdate(twitter: TwitterAPI; screenName: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- friendships/update.json endpoint
proc friendshipsUpdate(twitter: TwitterAPI; userId: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- friendships/update.json endpoint
proc usersLookup(twitter: TwitterAPI; userId: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- users/lookup.json endpoint for user id
proc usersLookup(twitter: TwitterAPI; screenName: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- users/lookup.json endpoint for screen name
proc usersSearch(twitter: TwitterAPI; q: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- users/search.json endpoint
proc usersProfileBanner(twitter: TwitterAPI; screenName: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- users/profile_banner.json endpoint
proc usersProfileBanner(twitter: TwitterAPI; userId: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- users/profile_banner.json endpoint
proc usersShow(twitter: TwitterAPI; screenName: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- users/show.json endpoint for screen names (@username)
proc usersShow(twitter: TwitterAPI; userId: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- users/show.json endpoint for user id (e.g. 783214 => @twitter)
proc usersReportSpam(twitter: TwitterAPI; screenName: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- users/report_spam.json endpoint for screen name
proc usersReportSpam(twitter: TwitterAPI; userId: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- users/report_spam.json endpoint for user id
proc accountSettings(twitter: TwitterAPI; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- account/settings.json endpoint
proc accountVerifyCredentials(twitter: TwitterAPI; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- account/verify_credentials.json endpoint
proc accountRemoveProfileBanner(twitter: TwitterAPI; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- account/remove_profile_banner.json endpoint
proc accountUpdateSettings(twitter: TwitterAPI; additionalParams: StringTableRef): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- account/update_settings.json endpoint
proc accountUpdateProfile(twitter: TwitterAPI; additionalParams: StringTableRef): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- account/update_profile.json endpoint
proc accountUpdateProfileBanner(twitter: TwitterAPI; banner: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- account/update_profile_banner.json endpoint
proc accountUpdateProfileImage(twitter: TwitterAPI; image: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- account/update_profile_image.json endpoint
proc savedSeachesList(twitter: TwitterAPI; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- saved_searches/list.json endpoint
proc savedSearchesShow(twitter: TwitterAPI; id: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- saved_searches/show/:id.json endpoint
proc savedSearchesCreate(twitter: TwitterAPI; query: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- saved_searches/create.json endpoint
proc savedSeachesDestroy(twitter: TwitterAPI; id: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- saved_searches/destroy/:id.json endpoint
proc blocksIds(twitter: TwitterAPI; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- blocks/ids.json endpoint
proc blocksList(twitter: TwitterAPI; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- blocks/list.json endpoint
proc mutesUsersIds(twitter: TwitterAPI; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- mutes/users/ids.json endpoint
proc mutesUsersList(twitter: TwitterAPI; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- mutes/users/list.json endpoint
proc blocksCreate(twitter: TwitterAPI; screenName: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
proc blocksCreate(twitter: TwitterAPI; userId: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
proc blocksDestroy(twitter: TwitterAPI; screenName: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
proc blocksDestroy(twitter: TwitterAPI; userId: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
proc mutesUsersCreate(twitter: TwitterAPI; screenName: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
proc mutesUsersCreate(twitter: TwitterAPI; userId: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
proc mutesUsersDestroy(twitter: TwitterAPI; screenName: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
proc mutesUsersDestroy(twitter: TwitterAPI; userId: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
proc collectionsEntries(twitter: TwitterAPI; id: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- collections/entries.json endpoint
proc collectionsList(twitter: TwitterAPI; id: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- collections/list.json endpoint for twitter user id
proc collectionsList(twitter: TwitterAPI; screenName: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- collections/list.json for twitter user screen name
proc collectionsShow(twitter: TwitterAPI; id: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- collections/show.json endpoint
proc collectionsCreate(twitter: TwitterAPI; name: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- collections/create.json endpoint
proc collectionsDestroy(twitter: TwitterAPI; id: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
proc collectionsEntriesAdd(twitter: TwitterAPI; id: string; tweet_id: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- collections/entries/add.json endpoint
proc collectionsEntriesCurate(twitter: TwitterAPI; jsonBody: JsonNode): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- collections/entries/curate.json endpoint
proc collectionsEntriesMove(twitter: TwitterAPI; id: string; tweet_id: int; relative_to: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- collections/entries/move.json endpoint
proc collectionsEntriesRemove(twitter: TwitterAPI; id: string; tweet_id: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- collections/entries/remove.json endpoint
proc collectionsUpdate(twitter: TwitterAPI; id: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- collections/update.json endpoint
proc statusesFilter(twitter: TwitterAPI; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- statuses/filter.json endpoint
proc statusesUserTimeline(twitter: TwitterAPI; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- statuses/user_timeline.json endpoint
proc statusesHomeTimeline(twitter: TwitterAPI; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- statuses/home_timeline.json endpoint
proc statusesMentionsTimeline(twitter: TwitterAPI; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- statuses/mentions_timeline.json endpoint
proc statusesLookup(twitter: TwitterAPI; ids: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
-
statuses/lookup.json endpoint
ids is a string of comma seperated tweet ids
proc statusesOembed(twitter: TwitterAPI; url: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
-
oembed endpoint
Used for generating embeds from tweets, uses publish.twitter.com as a url
proc statusesRetweetersIds(twitter: TwitterAPI; id: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- statuses/retweeters/ids.json endpoint
proc statusesRetweets(twitter: TwitterAPI; id: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- statuses/retweets/:id.json endpoint
proc statusesRetweetsOfMe(twitter: TwitterAPI; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- statuses/retweets_of_me.json endpoint
proc statusesShow(twitter: TwitterAPI; id: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- statuses/show.json endpoint
proc statusesDestroy(twitter: TwitterAPI; id: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- statuses/destroy/:id.json endpoint
proc statusesRetweet(twitter: TwitterAPI; id: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- statuses/retweet/:id endpoint
proc statusesUnretweet(twitter: TwitterAPI; id: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- statuses/unretweet/:id.json endpoint
proc statusesUpdate(twitter: TwitterAPI; status: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- statuses/update.json endpoint
proc statusesSample(twitter: TwitterAPI; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- statuses/sample.json endpoint
proc favoritesList(twitter: TwitterAPI; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- favorites/list.json endpoint
proc favoritesCreate(twitter: TwitterAPI; id: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- favorites/create.json endpoint
proc favoritesDestroy(twitter: TwitterAPI; id: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- favorites/destroy.json endpoint
proc searchTweets(twitter: TwitterAPI; q: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
-
search/tweets.json endpoint
Standard tier search endpoint
proc customProfilesDestroy(twitter: TwitterAPI; id: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- custom_profiles/destroy.json endpoint
proc customProfilesId(twitter: TwitterAPI; id: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- custom_profiles/:id.json endpoint
proc customProfilesLists(twitter: TwitterAPI; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- custom_profiles/list.json endpoint
proc customProfilesNew(twitter: TwitterAPI; jsonBody: JsonNode): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- custom_profiles/new.json endpoint
proc directMessagesEventsDestroy(twitter: TwitterAPI; id: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- direct_messages/events/destroy.json endpoint
proc directMessagsEventsList(twitter: TwitterAPI; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- direct_messages/events/list.json endpoint
proc directMessagesEventsShow(twitter: TwitterAPI; id: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- direct_messages/events/show.json endpoint
proc directMessagesEventsNew(twitter: TwitterAPI; jsonBody: JsonNode): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- direct_messages/events/new.json endpoint (message_create)
proc directMessagesIndicateTyping(twitter: TwitterAPI; jsonBody: JsonNode): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- direct_messages/indicate_typing.json endpoint
proc directMessagesMarkRead(twitter: TwitterAPI; lastReadEventId: int; recipientId: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- direct_messages/mark_read.json endpoint
proc directMessagesWelcomeMessagesDestroy(twitter: TwitterAPI; id: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- direct_messages/welcome_messages/destroy.json endpoint
proc directMessagesWelcomeMessagesRulesDestroy(twitter: TwitterAPI; id: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- direct_messages/welcome_messages/rules/destroy.json endpoint
proc directMessagesWelcomeMessagesUpdate(twitter: TwitterAPI; id: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- direct_messages/welcome_messages/update.json endpoint
proc directMessagesWelcomeMessagesList(twitter: TwitterAPI; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- direct_messages/welcome_messages/list.json endpoint
proc directMessagesWelcomeMessagesRulesList(twitter: TwitterAPI; additionalParams: StringTableRef = nil): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- direct_messages/welcome_messages/rules/list.json endpoint
proc directMessagesWelcomeMessagesRulesShow(twitter: TwitterAPI; id: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- direct_messages/welcome_messages/rules/show.json endpoint
proc directMessagesWelcomeMessagesShow(twitter: TwitterAPI; id: int; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- direct_messages/welcome_messages/show.json endpoint
proc directMessagesWelcomeMessagesNew(twitter: TwitterAPI; jsonBody: JsonNode): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- direct_messages/welcome_messages/new.json endpoint
proc directMessagesWelcomeMessagesRulesNew(twitter: TwitterAPI; jsonBody: JsonNode): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- direct_messages/welcome_messages/rules/new.json endpoint
proc mediaUploadInit(twitter: TwitterAPI; mediaType: string; totalBytes: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
-
INIT command for media/upload.json endpoint
Docs: https://developer.twitter.com/en/docs/media/upload-media/api-reference/post-media-upload-init
mediaType should be the MIME type for the data you are sending.
The response returned from this will contain a media_id field that you need to provide to the other mediaUpload procs
proc mediaUploadAppend(twitter: TwitterAPI; mediaId: string; segmentId: string; data: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
-
APPEND command for media/upload.json endpoint
Docs: https://developer.twitter.com/en/docs/media/upload-media/api-reference/post-media-upload-append
Appends a chunk of data to a media upload, can accept base64 or binary
proc mediaUploadStatus(twitter: TwitterAPI; mediaId: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
-
STATUS command for media/upload.json endpoint
Docs: https://developer.twitter.com/en/docs/media/upload-media/api-reference/get-media-upload-status
Used to check the processing status of an upload. This should only be run when mediaUploadFinalize returns a processing_info field otherwise a 404 will be generated
proc mediaUploadFinalize(twitter: TwitterAPI; mediaId: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
-
FINALIZE command for media/upload.json endpoint
Docs: https://developer.twitter.com/en/docs/media/upload-media/api-reference/post-media-upload-finalize
Used to tell twitter your upload is finished. Will return a response with a processing_info field if further processing needs to be done use mediaUploadStatus to poll until completion.
proc mediaMetadataCreate(twitter: TwitterAPI; jsonBody: JsonNode): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
-
media/metadata/create.json endpoint
Docs: https://developer.twitter.com/en/docs/media/upload-media/api-reference/post-media-metadata-create
proc mediaSubtitlesCreate(twitter: TwitterAPI; jsonBody: JsonNode): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
-
media/subtitles/create.json endpoint
Docs: https://developer.twitter.com/en/docs/media/upload-media/api-reference/post-media-subtitles-create
proc mediaSubtitlesDelete(twitter: TwitterAPI; jsonBody: JsonNode): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
-
media/subtitles/delete.json endpoint
Docs: https://developer.twitter.com/en/docs/media/upload-media/api-reference/post-media-subtitles-create
proc trendsAvailable(twitter: TwitterAPI; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- trends/available.json endpoint
proc trendsClosest(twitter: TwitterAPI; lat: float; lon: float; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- trends/closest.json endpoint
proc trendsPlace(twitter: TwitterAPI; id: int32; additionalParams: StringTableRef = nil): Response {...}{.raises: [OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- trends/place.json endpoint
proc geoId(twitter: TwitterAPI; id: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- geo/id/:place_id.json endpoint
proc geoReverseGeocode(twitter: TwitterAPI; lat: float; lon: float; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- geo/reverse_geocode.json endpoint
proc geoSearch(twitter: TwitterAPI; additionalParams: StringTableRef = nil): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- geo/search.json endpoint
proc insightsEngagementTotals(twitter: TwitterAPI; jsonBody: JsonNode): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- insights/enagement/totals.json endpoint
proc insightsEngagementHistorical(twitter: TwitterAPI; jsonBody: JsonNode): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- insights/enagement/historical.json endpoint
proc insightsEngagement28h(twitter: TwitterAPI; jsonBody: JsonNode): Response {...}{.raises: [ OSError, IOError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
- insights/enagement/28h.json endpoint
proc uploadFile(twitter: TwitterAPI; filename: string; mediaType: string; additionalParams: StringTableRef = nil): Response {...}{.raises: [IOError, OSError, KeyError, ValueError, HttpRequestError, SslError, Defect, Exception, TimeoutError, ProtocolError], tags: [ReadIOEffect, TimeEffect, WriteIOEffect].}
-
Upload a file from a filename
mediaType takes these arguments: amplify_video, tweet_gif, tweet_image, tweet_video
Templates
template callAPI(twitter: TwitterAPI; api: untyped; additionalParams: StringTableRef = nil): untyped
-
Template to callAPI
Example:
var testStatus = {"status": "test"}.newStringTable var resp = twitterAPI.callAPI(statusesUpdate, testStatus)