refactor auth api
This commit is contained in:
parent
2de5a50e74
commit
f257b131ff
3 changed files with 71 additions and 31 deletions
2
auth.go
2
auth.go
|
|
@ -84,7 +84,7 @@ func (s *Scraper) getFlow(data map[string]interface{}) (*flow, error) {
|
|||
headers := http.Header{
|
||||
"Authorization": []string{"Bearer " + s.bearerToken},
|
||||
"Content-Type": []string{"application/json"},
|
||||
"User-Agent": []string{"TwitterAndroid/99"},
|
||||
"User-Agent": []string{s.userAgent},
|
||||
"X-Guest-Token": []string{s.guestToken},
|
||||
"X-Twitter-Auth-Type": []string{"OAuth2Client"},
|
||||
"X-Twitter-Active-User": []string{"yes"},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue