'init'
This commit is contained in:
41
localAPI-main/py-examples/example-create-profile.py
Normal file
41
localAPI-main/py-examples/example-create-profile.py
Normal file
@@ -0,0 +1,41 @@
|
||||
import requests
|
||||
|
||||
url = "http://local.adspower.net:50325/api/v1/user/create"
|
||||
|
||||
payload = {
|
||||
"name": "test",
|
||||
"group_id": "0",
|
||||
"domain_name": "facebook.com",
|
||||
"repeat_config": [
|
||||
"0"
|
||||
],
|
||||
"country": "us",
|
||||
"fingerprint_config": {
|
||||
"language": [
|
||||
"en-US"
|
||||
],
|
||||
"ua": "Mozilla/5.0 (Linux; Android 8.0.0; BND-AL10 Build/HONORBND-AL10; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/63.0.3239.83 Mobile Safari/537.36 T7/11.5 baiduboxapp/11.5.0.10 (Baidu; P1 8.0.0)",
|
||||
"flash": "block",
|
||||
"scan_port_type": "1",
|
||||
"screen_resolution": "1024_600",
|
||||
"fonts": [
|
||||
"all"
|
||||
],
|
||||
"longitude": "180",
|
||||
"latitude": "90",
|
||||
"webrtc": "proxy",
|
||||
"do_not_track": "true",
|
||||
"hardware_concurrency": "default",
|
||||
"device_memory": "default"
|
||||
},
|
||||
"user_proxy_config": {
|
||||
"proxy_soft": "no_proxy"
|
||||
}
|
||||
}
|
||||
headers = {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
|
||||
response = requests.request("POST", url, headers=headers, json=payload)
|
||||
|
||||
print(response.text)
|
||||
Reference in New Issue
Block a user