praster1 / igdbV4

MIT License
1 stars 0 forks source link

int 401 Error #2

Closed gshick closed 3 years ago

gshick commented 3 years ago

I received my client_id and client_secret, trying to run some of the examples listed such as:

params <- igdb_parameters(search = "Zelda", fields = "*", order = "published_at:desc")
json_resp <- igdb_request(GAMES, params, client_id, client_secret)

and

params <- igdb_parameters(search = "Atari", fields = "name", limit = 2)
json_resp <- igdb_request(PLATFORMS, params, client_id, client_secret)

but all that is returned for both queries is :

No encoding supplied: defaulting to UTF-8.
 int 401
Error: IGDB API request failed: NULL

Any suggestions/documentation on how to resolve?

praster1 commented 3 years ago

Perhaps there is a problem with encoding. I'll figure it out and let you know soon.

praster1 commented 3 years ago

It has been fixed.