Learn R Programming

skillsengineeR (version 0.2.0)

competencies_military: Pull from Competencies Military API endpoint.

Description

Pull from Competencies Military API endpoint.

Usage

competencies_military(
  moc,
  service_branch = NULL,
  mpc = NULL,
  exclude = NULL,
  start_date = NULL,
  end_date = NULL,
  moc_status = NULL,
  token,
  handle_status = "warn",
  response_raw = FALSE
)

Arguments

moc

String or numeric MOC code to return competencies for

service_branch

Lowercase Branch of Armed Forces string, e.g. 'army' (Optional)

mpc

String (Optional)

exclude

Character vector of return elements to exclude (Optional)

start_date

Start date of military service (Optional)

end_date

End date of military service (Optional)

moc_status

Status of MOC (Optional)

token

Authorization token obtained from get_access_token

handle_status

How to handle bad HTTP status. Set as either warn or error

response_raw

Logical value whether to return the API response as raw, unparsed text. Defaults to FALSE

Value

A list of length 12; military competencies data relevant to query

Examples

Run this code
# NOT RUN {
tkn <- get_access_token(client_id, client_secret)
c <- competencies_military(moc = "2A554E", token = tkn)
# }

Run the code above in your browser using DataLab