Instantly share code, notes, and snippets.

Embed
What would you like to do?
# We are calling /add/product endpoint.
# Since this is a creation method, we use POST (in lowercase) as method.
response = make_request('/add/product', 'post', payload)
print(response.status_code, response.text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment