Internal
Optional
config: IRettiwtConfigThe config object for configuring the Rettiwt instance.
Protected
Optional
Readonly
authThe URL to the proxy server to use for authentication.
Protected
fetchFetches the requested resource from Twitter and returns it after processing.
The type of resource to fetch.
Resource specific arguments.
The processed data requested from Twitter.
Login to twitter as guest.
A new guest key.
import { Rettiwt } from 'rettiwt-api';
// Creating a new Rettiwt instance
const rettiwt = new Rettiwt();
// Logging in an getting a new guest key
rettiwt.auth.guest()
.then(guestKey => {
// Use the guest key
...
})
.catch(err => {
console.log(err);
});
Login to twitter using account credentials.
The email id associated with the Twitter account.
The username associated with the Twitter account.
The password to the Twitter account.
The API_KEY for the Twitter account.
import { Rettiwt } from 'rettiwt-api';
// Creating a new Rettiwt instance
const rettiwt = new Rettiwt();
// Logging in an getting the API_KEY
rettiwt.auth.login("email@domain.com", "username", "password")
.then(apiKey => {
// Use the API_KEY
...
})
.catch(err => {
console.log(err);
});
Protected
postProtected
uploadGenerated using TypeDoc
Handles authentication.