add account methods to readme

This commit is contained in:
Valentine 2024-10-01 01:15:35 +03:00
parent d4ea0c9848
commit 870947b6c4

View file

@ -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