-
Notifications
You must be signed in to change notification settings - Fork 220
Credentials
Twitter execute queries against credentials that are stored as OAuth Tokens. These tokens allow Twitter to identify the Application that want to execute an operation on behalf of a specific User.
It is important to be aware that each query executed against the Twitter REST API or Stream API requires a WebRequest to contain credentials information in the headers.
The credentials information can be divided into 2, the Application Credentials and the User Credentials.
Application credentials are generated by Twitter on its apps website.
After creating your application, the interface will show you a Keys and Access Tokens
which will contains the magical information we are looking for.
- Consumer Key (API Key)
- Consumer Secret (API Secret)
When a user wants to use an application, Twitter generates a second pair of credentials that will be specific to an application.
The user credentials contains the 2 following keys:
- Access Token
- Access Token Secret
You can get more information on how to generate user credentials information in Authentication.
There are 2 ways you can set up credentials in Tweetinvi.