'init'
This commit is contained in:
17
localAPI-main/py-examples/example-regroup-profile.py
Normal file
17
localAPI-main/py-examples/example-regroup-profile.py
Normal file
@@ -0,0 +1,17 @@
|
||||
import requests
|
||||
|
||||
url = "http://local.adspower.net:50325/api/v1/user/regroup"
|
||||
|
||||
payload = {
|
||||
"user_ids": [
|
||||
"XX"
|
||||
],
|
||||
"group_id": "0"
|
||||
}
|
||||
headers = {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
|
||||
response = requests.request("POST", url, headers=headers, json=payload)
|
||||
|
||||
print(response.text)
|
||||
Reference in New Issue
Block a user