Quantcast
Channel: Hooktheory Forum - Latest topics
Viewing all articles
Browse latest Browse all 2672

How to access the api?!?

$
0
0

@kingzack wrote:

I've wrangled quite a few api's in my day, however am totally stuck on this one.

I'm using the documentation on this page, but cant figure out how to get past step one.

Below is my simple python code using the requests library.

Can someone please tell me wtf im doing wrong?
Sincerely, ZACK

In [10]:
import requests

header = {"Accept": "application/json", 
           "Content-Type": "application/json"}

payload = {"username":"kingzack",
           "password": "top-secret-yo"}


endpoint = "https://api.hooktheory.com/v1/users/auth/"
requests.post(endpoint, headers=header, data=payload)


Out[10]:
<Response [404]>

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 2672

Trending Articles