@@ -36,7 +36,7 @@ For more information about authentication [go here](#authentication)
36
36
37
37
## Examples
38
38
39
- ### Consuming a stream
39
+ ### Consuming a Stream
40
40
41
41
``` typescript
42
42
import { Client } from " twitter-api-sdk" ;
@@ -55,7 +55,7 @@ async function main() {
55
55
main ();
56
56
```
57
57
58
- ### Getting a tweet
58
+ ### Getting a Tweet
59
59
60
60
``` typescript
61
61
import { Client } from " twitter-api-sdk" ;
@@ -108,7 +108,7 @@ You can see various examples on how to use the authentication in [examples/](exa
108
108
109
109
Make sure you turn on OAuth2 in your apps user authentication settings, and set the type of app to be either a confidential client or a public client.
110
110
111
- ### Creating an public Auth Client
111
+ ### Creating a Public Auth Client
112
112
113
113
``` typescript
114
114
const authClient = new auth .OAuth2User ({
@@ -120,7 +120,7 @@ const authClient = new auth.OAuth2User({
120
120
const client = new Client (authClient );
121
121
```
122
122
123
- ### Creating an confidential Auth Client
123
+ ### Creating a Confidential Auth Client
124
124
``` typescript
125
125
const authClient = new auth .OAuth2User ({
126
126
client_id: process .env .CLIENT_ID ,
@@ -141,7 +141,7 @@ const authUrl = authClient.generateAuthURL({
141
141
});
142
142
```
143
143
144
- ### Getting an Access Token
144
+ ### Requesting an Access Token
145
145
146
146
Once the user has approved the OAuth flow, you will receive a ` code ` query parameter at the callback URL you specified.
147
147
@@ -166,7 +166,7 @@ Note this is only for developers who want to contribute code to the SDK
166
166
git clone https://github.com/twitterdev/twitter-api-typescript-sdk
167
167
```
168
168
169
- ### Running the generation script
169
+ ### Running the Generation Script
170
170
171
171
Generating the SDK with the [ latest OpenAPI spec] ( https://api.twitter.com/2/openapi.json ) . The version is any valid [ SemVer] ( https://semver.org/ ) version
172
172
0 commit comments