Skip to content

Instantly share code, notes, and snippets.

@prisync
Created December 28, 2017 12:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prisync/61b24502397c9c8d4e5487e5eefac827 to your computer and use it in GitHub Desktop.
Save prisync/61b24502397c9c8d4e5487e5eefac827 to your computer and use it in GitHub Desktop.
# 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