This commit is contained in:
keita
2021-10-07 21:50:46 +09:00
parent d3d0dc96fd
commit e7c0df8e99
5 changed files with 31 additions and 28 deletions
+10
View File
@@ -115,6 +115,16 @@ CocoaTweet::API::API api(key);
```
### NOTE
if you want to call Twitter API using Bearer Token; OAuth2, you can do.
```
api.generateBearerToken();
```
After call it, always use Bearer Token to access API which kinds of GET method.
no affect to POST method.
then, if you use this, and ONLY use kind of GET API, you DO NOT need acess token.
## Use API
```
// Post a tweet