We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3b764af + 9b3b58e commit 5ae73caCopy full SHA for 5ae73ca
README.md
@@ -45,10 +45,10 @@ import { TwitterApi } from 'twitter-api-v2';
45
const twitterClient = new TwitterApi('<YOUR_APP_USER_TOKEN>');
46
47
// Tell typescript it's a readonly app
48
-const roClient = twitterClient.readOnly;
+const readOnlyClient = twitterClient.readOnly;
49
50
// Play with the built in methods
51
-const user = await roClient.v2.userByUsername('plhery');
+const user = await readOnlyClient.v2.userByUsername('plhery');
52
await twitterClient.v1.tweet('Hello, this is a test.');
53
// You can upload media easily!
54
await twitterClient.v1.uploadMedia('./big-buck-bunny.mp4');
0 commit comments