manage README

This commit is contained in:
keita
2021-03-14 23:18:17 +09:00
parent 8a06e436ab
commit bafa269c4e
+4
View File
@@ -10,6 +10,7 @@ This is a library for using Twitter API from C++
you can use these endpoint
- statuses/update
- statuses/destroy/:id
- statuses/retweet/:id
- favorites/create
- favorites/destroy
- media/upload(support: jpg, jpeg, png, gif, mp4)
@@ -120,6 +121,9 @@ auto media1 = api.media().Upload("path/to/file/image.jpeg");
auto media2 = api.media().Upload("path/to/file/image2.png");
api.status().Update("Upload media from Cocoa Twitter Library", std::vector<std::string>{media1.id(), media2.id()});
// Retweet a tweet
api.status().Retweet("tweet id");
// Delete a tweet
api.status().Destroy("tweet id");