add account methods to readme
This commit is contained in:
parent
d4ea0c9848
commit
870947b6c4
1 changed files with 35 additions and 19 deletions
16
README.md
16
README.md
|
|
@ -48,6 +48,7 @@ You can use this library to get tweets, profiles, and trends trivially.
|
|||
- [Create scheduled tweet](#create-scheduled-tweet)
|
||||
- [Delete scheduled tweet](#delete-scheduled-tweet)
|
||||
- [Upload media](#upload-media)
|
||||
- [Account](#account)
|
||||
- [Connection](#connection)
|
||||
- [Proxy](#proxy)
|
||||
- [HTTP(s)](#https)
|
||||
|
|
@ -652,6 +653,21 @@ Uploads photo, video or gif for further posting or scheduling. Expires in 24 hou
|
|||
media, err := scraper.UploadMedia("./files/movie.mp4")
|
||||
```
|
||||
|
||||
### Account
|
||||
> Requires authentication!
|
||||
|
||||
To get current account settings use `GetAccountSettings` method.
|
||||
|
||||
```golang
|
||||
settings, err := scraper.GetAccountSettings()
|
||||
```
|
||||
|
||||
If you use session with multiaccount you can use `GetAccountList` method to get slice of all accounts.
|
||||
|
||||
```golang
|
||||
accounts, err := scraper.GetAccountList()
|
||||
```
|
||||
|
||||
## Connection
|
||||
|
||||
### Proxy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue