import { TwitterApi } from "https://deno.land/x/deno_twitter_api@v1.1.0/twitterApi.ts";
Constructors
This class is used to access the twitter api
The link for the implementation rules can be found here: https://developer.twitter.com/en/docs/basics/authentication/guides/authorizing-a-request
[consumerApiKey], [consumerApiSecret], [accessToken], and [accessTokenSecret] come from the link above. They are unique for each app and user. You will need to generate your own and pass them in when creating the TwitterOauth object.
Methods
Makes a get request to the twitter api
The [url] should not include https://api.twitter.com/1.1/
Good: lists/statuses.json
Bad: https://api.twitter.com/1.1/lists/statuses.json
Makes a post request to the twitter api
The [url] should not include https://api.twitter.com/1.1/
Good: lists/statuses.json
Bad: https://api.twitter.com/1.1/lists/statuses.json
Makes a post request to the twitter api
The [url] should not include https://api.twitter.com/1.1/
Good: lists/statuses.json
Bad: https://api.twitter.com/1.1/lists/statuses.json