competencies_military: Pull from Competencies Military API endpoint.

Description Usage Arguments Value Examples

View source: R/post_functions.R

Description

Pull from Competencies Military API endpoint.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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

1
2
3
4
5
## Not run: 
tkn <- get_access_token(client_id, client_secret)
c <- competencies_military(moc = "2A554E", token = tkn)

## End(Not run)

skillsengineeR documentation built on March 4, 2021, 5:07 p.m.