Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only accept json output #5

Open
cyrildiagne opened this issue Dec 16, 2021 · 1 comment
Open

Only accept json output #5

cyrildiagne opened this issue Dec 16, 2021 · 1 comment

Comments

@cyrildiagne
Copy link

Here:

res = Excon.get url

I had to specify the output requested otherwise the opensea API would return the Django HTML version:

res = Excon.get url, :headers => { "Accept" => "application/json" }

Example:
https://api.opensea.io/api/v1/assets?order_direction=asc&limit=50&collection=clonex&offset=0

@makevoid
Copy link
Owner

hi, thanks for reporting the bug, interesting

it makes sense, I will add the accept header! thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants