Replies: 1 comment 3 replies
-
Adding @andrueastman @Ndiritu to help |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am very new to MS Graph API, but have successfully developed connectivity with other product APIs such as Xero.
I have an open item TrackingID#2410040050002672 and was advised to post a question here.
Using the PHP SDK, I am struggling with the generating a token & refresh token, then storing both in the InMemoryAccessTokenCache for later use. It is my understanding that once this method has been established, I can call the InMemoryAccessTokenCache. If the token is still valid a valid token is returned, or, if the token is expired a refresh token returned.
My setup is complete and I can get a token using postman.
I have been advised to use the following code to establish the token & refresh token, and store them InMemoryAccessTokenCache. However, this fails as it seems Microsoft\Graph\Auth\OAuth2\OAuth2Client does not exist in the SDK !
I would appreciate any help in configuring this (it's diving me mad!!).
It is also my understanding that once the token and refresh token has been established, I can use the following to establish/re-extablish the token, prior and API call to my designated endpoint ????
Honestly, it's day 4 of going in circles, please help?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions