import requests
import base64
import json
def run():
account_id = 'f802238b-58a3-****************606f4745'
key = '3_0KgI4JvUDQNLcluZYnzA4YCad'
base_url = 'https://smartcat.ai/'
key = account_id+ ':' + key
projectID = "d5925b***************-a70ef6bc703a"
# project = base64.b64encode(bytes(project,"utf-8"))
encoded_key = base64.b64encode(bytes(key, 'utf-8'))
with open("project.json","r") as f:
project = json.load(f)
files = {'file': ('project.json', open('project.json', 'rb'))}
headers = {
"Authorization" : "Basic "+encoded_key.decode(),
}
response = requests.post(base_url+'/api/integration/v1/project/create', headers=headers,data=project, files=files)
print(response)
run()
как послать multiplay, вот собственно и вопрос, не думаю что вы ответ найдете в документации, хотя можете опробовать.