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::fetchandodata/lang::post,msgraph::fetchandmsgraph::postshould be used, that implement the authorization management. It is important to:use:msgraphbefore:odata/langin the package definition, like incontacts-apppackage, so that the correctmsgraphfunctions are used.