- Create
.env
file.
cp .env.sample .env
And, replace values of each environment variables.
- Load environment variables.
source .env
Plans that can run this example: Basic , Pro
cd 1_get_recent_activity \
&& go run . 'your-account-id'
Plans that can run this example: Free, Basic , Pro
cd 2_post_delete_tweet
-
post a tweet
go run . 'post' 'This is a test tweet.'
-
delete a tweet
go run . 'delete' 'tweet-id'
Plans that can run this example: Pro ?
cd 3_sample_stream \
&& go run . 5
Plans that can run this example: Pro