generate_request_url: Generate a URL with devid and signature

Description Usage Arguments Value

View source: R/url-manipulation.R

Description

Generate a URL with devid and signature

Usage

1
2
3
4
5
generate_request_url(
  request,
  user_id = determine_user_id(),
  api_key = determine_api_key()
)

Arguments

request

Character. A path without base URL or version, such as "routes" or "stop/1071".

user_id

Integer or character. A user ID or devid provided by Public Transport Victoria. Refer to ?ptvapi for more details.

api_key

Character. An API key, with dashes, provided by Public Transport Victoria. Refer to ?ptvapi for more details.

Value

A complete URL character that can be queried with httr


ptvapi documentation built on May 2, 2021, 9:06 a.m.