Initializes a new Rettiwt instance using the given api key.
Optional
config: IRettiwtConfigThe config object for configuring the Rettiwt instance.
The instance used to authenticate.
The instance used to fetch data related to tweets.
The instance used to fetch data related to users.
Generated using TypeDoc
The class for accessing Twitter API.
The created Rettiwt instance can be configured by passing in a configuration object to the constructor.
For details regarding the available configuration options, refer to IRettiwtConfig
Example
Creating a Rettiwt instance with 'guest' authentication:
Example
Creating a Rettiwt instance with 'guest' authentication, using a pre-generated guest key:
Example
Creating a Rettiwt instance with 'user' authentication:
Example
Creating a Rettiwt instance with 'user'authentication, along with enabling debug logs and using a proxy: