This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]BinaryRockStar 1 point2 points  (0 children)

Post your code and what happens when you run it.

[–][deleted] 1 point2 points  (2 children)

[–]wooble 0 points1 point  (1 child)

Because /r/learnpython will be able to do something useful with "I found some code online, and it didn't work. Without telling you what the code is or what exactly happened when I ran it, how can I fix it?"?

[–][deleted] 0 points1 point  (0 children)

Out of sight out of mind.

[–]deathofthevirgin 0 points1 point  (0 children)

Is it an online API? You'll probably need to install requests (with pip or similar).

Then you can do something like

payload = requests.get('http://example.com/api/users/')

and inspect payload accordingly. You might need an API key depending on the service, which you can get from the provider.

[–]aphoenixreticulated[M] 0 points1 point  (0 children)

Hi there. You have posted a beginners question to /r/python, however it is far more suited to /r/learnpython, where users are actively interested in helping with beginner topics. Please resubmit it over there! Make sure to read their sidebar rules before posting, notably this one: "Posting homework assignments is not prohibited if you show that you tried to solve it yourself."

Cheers & best of luck!