Skip to content

Commit 5ae73ca

Browse files
authored
Merge pull request #325 from mikemaccana/patch-1
Unminify 'roClient'
2 parents 3b764af + 9b3b58e commit 5ae73ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ import { TwitterApi } from 'twitter-api-v2';
4545
const twitterClient = new TwitterApi('<YOUR_APP_USER_TOKEN>');
4646

4747
// Tell typescript it's a readonly app
48-
const roClient = twitterClient.readOnly;
48+
const readOnlyClient = twitterClient.readOnly;
4949

5050
// Play with the built in methods
51-
const user = await roClient.v2.userByUsername('plhery');
51+
const user = await readOnlyClient.v2.userByUsername('plhery');
5252
await twitterClient.v1.tweet('Hello, this is a test.');
5353
// You can upload media easily!
5454
await twitterClient.v1.uploadMedia('./big-buck-bunny.mp4');

0 commit comments

Comments
 (0)