Apr-19-2018, 08:42 PM
Hello Team,
I need help in code to post variable( which has url) in the body of post api call. Here is code.
stashurl = 'https://<someurl>_{}/{}'.format(quote(app), quote(querystring))
payload = "{\"inputParameters\": [{\"name\": \"url\",\"value\": \"stashurl\"t}]}"
How to pass the stashurl variable in payload to post it to another api.
I need help in code to post variable( which has url) in the body of post api call. Here is code.
stashurl = 'https://<someurl>_{}/{}'.format(quote(app), quote(querystring))
payload = "{\"inputParameters\": [{\"name\": \"url\",\"value\": \"stashurl\"t}]}"
How to pass the stashurl variable in payload to post it to another api.