generate_request_url: Generate a URL with devid and signature

View source: R/url-manipulation.R

generate_request_urlR Documentation

Generate a URL with devid and signature

Description

Generate a URL with devid and signature

Usage

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 29, 2024, 4:48 a.m.