Skip to content

Commit

Permalink
update api url from climate to energy
Browse files Browse the repository at this point in the history
  • Loading branch information
andypicke committed Nov 14, 2024
1 parent 290ed6c commit edb5dc0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion R/construct_query_url.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ construct_query_url <- function(endpoint = c("electricity-generation", "power-se
max_date = "2023",
entity = "all",
api_key = Sys.getenv("EMBER_API_KEY")) {
base_url <- "https://api.ember-climate.org/v1/"
base_url <- "https://api.ember-energy.org/v1/"

# check inputs
endpoint <- match.arg(endpoint)
Expand Down
2 changes: 1 addition & 1 deletion R/get_ember_options.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ get_ember_options <- function(dataset = c("electricity-generation", "power-secto
dataset <- match.arg(dataset)
temporal_resolution <- match.arg(temporal_resolution)

base_url <- "https://api.ember-climate.org/v1/options/"
base_url <- "https://api.ember-energy.org/v1/options/"

query_url <- paste0(base_url, dataset, "/", temporal_resolution, "/", filter_name, "?api_key=", api_key)

Expand Down
4 changes: 2 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ knitr::opts_chunk$set(
[![Project Status: WIP](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip)
<!-- badges: end -->

The goal of {emberr} is to provide functions to query and retrieve data from the [Ember](https://ember-climate.org/) [API](https://ember-climate.org/data/api/).
The goal of {emberr} is to provide functions to query and retrieve data from the [Ember](https://ember-energy.org/) [API](https://ember-energy.org/data/api/).

You can view the [API documentation](https://api.ember-climate.org/docs) for details. Please note the license information provided by Ember:
You can view the [API documentation](https://api.ember-energy.org/docs) for details. Please note the license information provided by Ember:

*Our data is published using the CC-BY-4.0 license. Anyone is able to use our data for any purpose (personal, commercial, etc.). The only requirements by this license are that:

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ WIP](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.o
<!-- badges: end -->

The goal of {emberr} is to provide functions to query and retrieve data
from the [Ember](https://ember-climate.org/)
[API](https://ember-climate.org/data/api/).
from the [Ember](https://ember-energy.org/)
[API](https://ember-energy.org/data/api/).

You can view the [API documentation](https://api.ember-climate.org/docs)
You can view the [API documentation](https://api.ember-energy.org/docs)
for details. Please note the license information provided by Ember:

\*Our data is published using the CC-BY-4.0 license. Anyone is able to
Expand Down

0 comments on commit edb5dc0

Please sign in to comment.