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

API v3 demo key access not working #63

Closed
makosiaaa opened this issue Dec 30, 2024 · 3 comments
Closed

API v3 demo key access not working #63

makosiaaa opened this issue Dec 30, 2024 · 3 comments

Comments

@makosiaaa
Copy link

          > Just tried testing the V3 API and it still seems to be working for me. Here's what I used:
# load package
library(rredlist)

# try accessing V3 API using example token provided in documentation
rl_habitats(
  "Fratercula arctica", 
  key = "9bb4facb6d23f48efbf424bb05c0c1ef1cf6f468393bc745d42179ac4aca5fee"
)

@nicholasZ16, maybe it was temporarily down when you tried using it?

hello all, I was trying to use the above demo API v3 but it is not working. Could you please share any additional API keys I could try using? I need to access the old API as the package I'm trying to use has not been updated yet for API v4. thank you!

PS: I opened a new issue as the relevant issue was closed (I'm new to the forum so apologies in advance if this should be handled differently)

Originally posted by @makosiaaa in #52 (comment)

@willgearty
Copy link
Contributor

That API key still appears to work for the v3 API (e.g., https://apiv3.iucnredlist.org/api/v3/country/getspecies/AZ?token=9bb4facb6d23f48efbf424bb05c0c1ef1cf6f468393bc745d42179ac4aca5fee). Could you provide more details about the error you are encountering? And what version of rredlist are you using? Did you download the package from CRAN or GitHub?

@makosiaaa
Copy link
Author

thanks for your prompt reply! My problem was not with rredlist because it's been working fine with the development version updated for API v.4 but with aoh package which I believe relies on the CRAN version of rredlist which requires API v3. Your question has actually helped me in figuring out what was the problem: I was using the latest version of rredlist for API v4 which was not compatible with aoh. I now have switched back to the CRAN rredlist and the API v3 is working fine for me! Maybe worth leaving the thread here in case anyone else has similar issues in the future.

@willgearty
Copy link
Contributor

Glad to hear you figured it out 👍

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