Learn R Programming

BMRSr (version 1.0.0)

build_remit_call: Create an API call for REMIT flows

Description

Create an API call for REMIT flows

Usage

build_remit_call(data_item, api_key, event_start = NULL,
  event_end = NULL, publication_from = NULL, publication_to = NULL,
  participant_id = NULL, asset_id = NULL, event_type = NULL,
  fuel_type = NULL, message_type = NULL, message_id = NULL,
  unavailability_type = NULL, active_flag = NULL, sequence_id = NULL,
  service_type = "xml", api_version = "v1")

Arguments

data_item

character string; the id of the REMIT flow

api_key

character string; api key retrieved from the Elexon portal

event_start

character string; event start (automatically cleaned by format_date)

event_end

character string; event end (automatically cleaned by format_date)

publication_from

character string; publication from (automatically cleaned by format_date)

publication_to

character string; publication to (automatically cleaned by format_date)

participant_id

character string; participant id

asset_id

character string; asset id

event_type

character string; event type

fuel_type

character string; fuel type

message_type

character string; message type

message_id

character string; message id

unavailability_type

character string; unavailability type

active_flag

character string; active flag

sequence_id

character string; sequence id

service_type

character string; file format (csv or xml)

api_version

character string; version of the api to use (currently on v1)

Value

list; created url for the call, service type and data item

See Also

Other call-building functions: build_b_call, build_call, build_legacy_call

Examples

Run this code
# NOT RUN {
build_remit_call(data_item = "MessageListRetrieval", api_key = "12345",
event_start = "14-12-2016", event_end = "15-12-2016")
build_remit_call(data_item = "MessageDetailRetrieval", api_key = "12345",
participant_id = 21, service_type = "xml")
# }

Run the code above in your browser using DataLab