powered by
Pull from Competencies Military API endpoint.
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 )
String or numeric MOC code to return competencies for
Lowercase Branch of Armed Forces string, e.g. 'army' (Optional)
String (Optional)
Character vector of return elements to exclude (Optional)
Start date of military service (Optional)
End date of military service (Optional)
Status of MOC (Optional)
Authorization token obtained from get_access_token
get_access_token
How to handle bad HTTP status. Set as either warn or error
warn
error
Logical value whether to return the API response as raw, unparsed text. Defaults to FALSE
FALSE
A list of length 12; military competencies data relevant to query
# 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