MSGRAPH is a library for accessing Microsoft Graph API.
It uses CL-OData library.
Have a look at the demo applications:
Some important comments:
- The library expects MS Graph credentials in
msgraph::*credentials*
, with::appid
,:tenantid
,:appname
,:client-secret
. - Token management is transparent for HTTP requests. When doing a request to MS API, if no token is found, a token is retrieved before the request. If the token is expired, another one is fetched.
- Instead of
odata/lang::fetch
andodata/lang::post
,msgraph::fetch
andmsgraph::post
should be used, that implement the authorization management. It is important to:use
:msgraph
before:odata/lang
in the package definition, like incontacts-app
package, so that the correctmsgraph
functions are used.