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

EIA API requires https #9

Open
leachandrew opened this issue Feb 24, 2022 · 0 comments
Open

EIA API requires https #9

leachandrew opened this issue Feb 24, 2022 · 0 comments

Comments

@leachandrew
Copy link
Contributor

As of Feb 22, EIA API requires https authentication:

image

Since pdfetch_EIA uses http, it won't work:
url <- paste0("http://api.eia.gov/series/?series_id=", id, "&api_key=", api_key)

Here's the output using the package example call:

pdfetch_EIA(c("ELEC.GEN.ALL-AK-99.A","ELEC.GEN.ALL-AK-99.Q"), KEY)
NULL
Warning messages:
1: In pdfetch_EIA(c("ELEC.GEN.ALL-AK-99.A", "ELEC.GEN.ALL-AK-99.Q"),  :
  Invalid series code ELEC.GEN.ALL-AK-99.A
2: In pdfetch_EIA(c("ELEC.GEN.ALL-AK-99.A", "ELEC.GEN.ALL-AK-99.Q"),  :
  Invalid series code ELEC.GEN.ALL-AK-99.Q
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

1 participant