Twitter connection object
The twitter function creates a
twitter object, which represents a Twitter® connection.
To establish the connection, you must obtain these required credentials from Twitter:
Consumer key
Consumer secret
Access token
Access token secret
To obtain these credentials, you must first log in to your Twitter account. Then, fill out the form in Create an application.
After you create a twitter object, you can use the object functions
to retrieve historical Twitter data with a Twitter connection. Or, you can retrieve other Twitter data by using the Twitter REST API to access other REST API endpoints.
creates a Twitter connection using the consumer key, consumer secret, access token,
and access token secret.c = twitter(consumerkey,consumersecret,accesstoken,accesstokensecret)