Created
December 28, 2017 12:47
-
-
Save prisync/bda9ad40759ae4c91457b7c365177bbe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for url in urls: | |
payload = { | |
# A URL can be added to a particular product and we need product_id of that. | |
# Use the product_id you've written down in the previous example. | |
'product_id': 2055805, | |
# Just one URL at a time | |
'url': url | |
} | |
response = make_request('/add/url', '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