msgraph_api: Execute a GET request against the MS Graph API

Description Usage Arguments Value Examples

View source: R/api.R

Description

Calls bare API end points and returns a wrapped 'httr' response object to a higher level function for presentation.

Usage

1
2
3
4
5
6
msgraph_api(
  path,
  msgraph_token,
  query = NULL,
  api_version = default_api_version()
)

Arguments

path

API endpoint to retrieve

msgraph_token

Oauth2 token as returned from 'httr::oauth2_token()'

query

Named list of parameters to use as the URL query

api_version

Version of the Graph API to call

Value

A msgraph_api object

Examples

1

davidski/msgraphr documentation built on June 3, 2020, 10:31 a.m.