Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "fmt"
- "io/ioutil"
- "log"
- "net/http"
- "strings"
- )
- func main() {
- client := &http.Client{}
- var data = strings.NewReader(`item_id=7115876560393030913&sync_origin=false&order=&first_install_time=1656770243&pre_item_playtime=5805&request_id=&follower_status=0&pre_hot_sentence=&pre_item_id=7117529588711836929&play_delta=1&action_time=1659295844&aweme_type=0&follow_status=0`)
- req, err := http.NewRequest("POST", "https://api-va.tiktokv.com/aweme/v1/aweme/stats/?os_api=24&device_type=SM-G925F&ssmix=a&manifest_version_code=220202&dpi=640&uoo=0®ion=US&app_name=musically_go&version_name=22.2.2&timezone_offset=10800&ts=1659294068&ab_version=22.2.2&residence=TR&cpu_support64=true¤t_region=TR&ac2=wifi&ac=wifi&app_type=normal&host_abi=armeabi-v7a&channel=googleplay&update_version_code=220202&_rticket=1659295844600&device_platform=android&iid=7126483246137526017&build_number=22.2.2&locale=en&op_region=TR&version_code=220202&timezone_name=Europe%2FIstanbul&cdid=d34c0cde-5c9d-490e-a537-375f3bdc4420&openudid=7373de1aae9670c2&sys_region=US&device_id=6982468005205345798&app_language=en&resolution=1440*2560&device_brand=samsung&language=en&os_version=7.0&aid=1340", data)
- if err != nil {
- log.Fatal(err)
- }
- req.Header.Set("Accept", "*/*")
- req.Header.Set("Accept-Encoding", "gzip, deflate")
- req.Header.Set("Connection", "keep-alive")
- req.Header.Set("Content-Length", "250")
- req.Header.Set("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8")
- req.Header.Set("Cookie", "store-idc=alisg; store-country-code=tr; install_id=7126483246137526017; ttreq=1$f4004ac40e53afeeffa8f4a65e1f748fb152b5aa; odin_tt=8b3fd6f27f471c6854ce1879656e38678d5a733f4ccb243d696fd0e116c2db2b884c3b451bc9eecf19bdae2c38a3079c66202c4741b6199dce36b4a0ad34090e1261eaff30f8c4b26267e76512a16bf8")
- req.Header.Set("Host", "api-va.tiktokv.com")
- req.Header.Set("User-Agent", "okhttp/3.10.0.1")
- req.Header.Set("X-Argus", "oDRCwW1TJJHa4BXRfKZnfmp1XwC/9tqplChzLkxQD5mT+J/8nQ/x6G4S57BuzPQdN8mgACKB2CbUo7TNilMN0B49Ek4KW8RVui7IrZy8SLek585Fo+gbXXsOFTFmR+rrLP8uTKHXjV0KBbT38x0xcpWrwk1aZPQHY1ormOnXb64zRP+ca/Dqa2XDLyH72xOWThgF3N1psE4tB6RCS7+9lf/+aPId6RR3oPQKDawyaAfkA2c59/K1WVIeBnV7Mhi4r3Rl3i+wSn4j+HvahmqzJItN")
- req.Header.Set("X-Gorgon", "0404c00b0405f78c0f72957ee83f764555c0e375c2c04b1d570f")
- req.Header.Set("X-Khronos", "1659296339")
- req.Header.Set("X-Ladon", "i2d9Oe5L2IkLZ7LxO+3LhII4pZZo1clF+ME4k6n+zBpCy4ES")
- req.Header.Set("X-SS-REQ-TICKET", "1659295844634")
- req.Header.Set("X-SS-STUB", "01F7D02E1441BAC4DA2860125736CA93")
- req.Header.Set("passport-sdk-version", "19")
- req.Header.Set("sdk-version", "2")
- req.Header.Set("x-vc-bdturing-sdk-version", "2.1.0.cn")
- resp, err := client.Do(req)
- if err != nil {
- log.Fatal(err)
- }
- defer resp.Body.Close()
- bodyText, err := ioutil.ReadAll(resp.Body)
- if err != nil {
- log.Fatal(err)
- }
- fmt.Printf("%s\n", bodyText)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement