I am getting proper response from API when I am passing integer value directly but I am not getting any response when I am passing integer through variable.
# Extarct information of Metadata of Design id-5071431
import requests
url = "https://www.helioscope.com/api/designs/5071431"
payload={}
headers = {
'access_token': 'API_key',
}
response = requests.request("GET", url, headers=headers, data=payload)
# <Response [200]>
des=5071431
# Extarct information of Metadata of Design id-5071431
import requests
url = "https://www.helioscope.com/api/designs/{des}"
payload={}
headers = {
'access_token': 'API_key',
}
response = requests.request("GET", url, headers=headers, data=payload)
# <Response [500]>
Attached are the screenshots for the same
Thanks in advance