ExpandTarget
Expand image - Upload target image
POST
Example:
import requestsimport jsonurl_api = 'https://api.piktid.com/api'target_full_path = 'url_of_your_target_image'options = {}response = requests.post(url_api+'/expand/target',headers={'Authorization': 'Bearer '+TOKEN},files={'file': open(target_full_path, 'rb')},data={'options':json.dumps(options)},)response_json = json.loads(response.text)id_image = response_json.get('id_image')token_auth_2header
AuthorizationBearer <token>application/json- body
file?unknownoptions?stringSuccess
application/json- response
id_image?stringcurl -X POST "https://example.com/api/expand/target" \ -H "Content-Type: application/json" \ -d '{}'{ "id_image": "string"}