removed iid parameter, changed version from 10.3.3 to 14.3.3

This commit is contained in:
lk3x8dc8hd 2020-03-04 18:09:16 -05:00
parent 45b28bcbb8
commit 0bd2836601
1 changed files with 7 additions and 6 deletions

13
main.go
View File

@ -290,22 +290,23 @@ func AwemeRequest(path string) ([]byte, error) {
)
rq, e = http.NewRequest("GET", "http://api-t.tiktok.com" + path +
"&device_id=" + DeviceId +
"&iid=0" +
"&version_code=100303" +
"&build_number=10.3.3" +
"&version_name=10.3.3" +
//"&iid=0" +
"&version_code=140403" +
"&build_number=14.3.3" +
"&version_name=14.3.3" +
"&aid=1233" +
"&app_name=musical_ly" +
"&app_language=en" +
"&channel=googleplay" +
"&device_platform=android" +
"&device_brand=Google" +
"&device_type=Android%20SDK%20built%20for%20x86" +
"&device_type=Pixel%204%20XL" +
"&os_version=" + Os, nil)
if e != nil {
return nil, e
}
rq.Header.Set("User-Agent", "okhttp")
//rq.Header.Set("User-Agent", "okhttp")
rq.Header.Set("User-Agent", "com.zhiliaoapp.musically (Android " + Os + "; Pixel 4 XL)")
if len(Ip) > 0 {
rq.Header.Set("X-Forwarded-For", Ip)
}