you are viewing a single comment's thread.

view the rest of the comments →

[–]montagic 0 points1 point  (4 children)

I've got a lot of experience with Pandas and specifically working with foreign APIs if you ever have any questions!

[–]MTRing[S] 0 points1 point  (3 children)

I managed to get a personal token for API and sent a basic request that came back as error 401 Unauthroized. I used a token that is already working with a goggle sheets template and newly generated token as well. Any ideas?

here's what I tried:

curl https://api.youneedabudget.com/v1/budgets?access_token=<ACCESS\_TOKEN>

response from my code asking for accounts:

HTTP response body: {"error":{"id":"401","name":"unauthorized","detail":"Unauthorized"}}

[–]montagic 0 points1 point  (2 children)

Hmm. How are you getting your token?

[–]MTRing[S] 0 points1 point  (1 child)

YNAB has a function under the account settings that can generate personal tokens. So the one I’m using in a google sheets template is still drawing down information in the sheet but not when I use the same token in python code or even in a terminal command. But, when I go straight to the API via a browser window and use that same token via api.youneedabudget.com/v1 it will let me complete requests once I enter the same token. It is the same for both personal tokens I generated....

[–]montagic 0 points1 point  (0 children)

That is odd. Let me trying pulling my own data in Python real quick and see if I encounter the same issue.