Description Usage Arguments Examples
For any requirement not currently in place in the vstsr
package, then this function will allow you
to use the relevant API call without any extra requirements.
For the most part it is just a shell of VERB
but will have the auth_key
set up already.
1 | vsts_run_command(url, verb, auth_key, body = NULL, query = NULL)
|
url |
the URI of the API call to run |
verb |
name of the verb to use |
auth_key |
authentication key generated by using |
body |
check |
query |
a list of extra parameters that can be sent to the API call. If not required then leave as |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
auth_key <- vsts_auth_key("<username>", "<password>")
# Get commits of a repository
URL <- file.path(
"https://dev.azure.com",
domain,
project,
"_apis/git/repositories",
repository_id,
"commits?api-version=5.0"
)
vsts_run_command(URL, "GET", auth_key)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.