cosmostation / cosmostation-docs

MIT License
7 stars 9 forks source link

Feedback for “Account Balance History” #19

Closed bobiq closed 12 months ago

bobiq commented 1 year ago

Hi,

I keep getting these errors

Status Code 502(Error Occurred) Content Type application/json; charset=utf-8 Content Length 229

The token seems to work on some more simple API calls like this though. https://docs.cosmostation.io/apis/reference/utilities/assets

How can I make it work in python? Where would I put the API-Key? There is no place for it in the http addresss...

juniahn-dev commented 1 year ago

Hi @bobiq

If you have correct bearer token, you can API calls and get tokens data. Looking at what you wrote you used python. I don't know exactly because i'm not use python. But it's not problem because api call is all same architecture.

First you can check like this

endpoint="https://apis.mintscan.io/v1/cosmos/assets"
headers={"Authorization": "Bearer YOUR_BEARER_TOKEN"}

requests.get(endpoint, headers=headers).json()

It will be gave you want to data

juniahn-dev commented 1 year ago

And account balance is not work now.

Because data migration is in progress. So account, validator etc data is to be available again in a few days. Sorry to waiting.

juniahn-dev commented 12 months ago

now you can do it

bobiq commented 12 months ago

Thanks for letting me know.