Nilesh Daldra

Jun 11 07:30
@Sridevi there
Jun 11 07:25
is there any way to get latest access token once it expired after 1 hour?
Jun 11 07:19
i have one cron that sending notification and its running for each 24 hours.
so i want to add event on that cron for that user.
so should i call refresh token api before running add event api?
Jun 11 07:17
if you wish to help me
Jun 11 07:17
I need one more suggestion from you
Jun 11 07:17
it worked
Jun 11 07:17
Thank you so much
Jun 11 07:12
just confirming one more question i have
Jun 11 07:12
its working on code as well
Jun 11 07:12
ok thanks
Jun 11 07:12
and with that i can get latest access token
Jun 11 07:12
ok means for every 24 it should call refresh token
Jun 11 07:11
ok
Jun 11 07:10
can't it be long like for 24 hours?
Jun 11 07:10
it returns 3600 records
Jun 11 07:10
"token_type": "Bearer",
"scope": "Calendars.Read Calendars.ReadWrite",
"expires_in": 3600,
"ext_expires_in": 3600,
Jun 11 07:06
@Sridevi ya sure doing using code
Jun 11 06:41
ok trying that
Jun 11 06:37
@Sridevi now it returns both
Jun 11 06:37
@s
Jun 11 06:33
ok let me do that
Jun 11 06:30
no
Jun 11 06:25
i have tried directly to postman prnt.sc/zaudnSFYhecT
Jun 11 06:25
Please ignore description
Jun 11 06:25
0
Q: Not able to get refresh token for Microsoft Graph API using access token in php

Nilesh DaldraI have Access token for v2.0 but when i am trying to get refresh token that is long lived. its give me an error prnt.sc/zaudnSFYhecT and below is the code that i am trying to add function RefreshToeknOutlook($params) { $res_data=[ 'error_msg'=>"", "full_res"=>[], ...

Jun 11 06:20
Ya sure and sending you link
Jun 11 05:57
i need help on generating refresh token
Jun 11 05:57
Hi @Sridevi are you arround?
Jun 10 14:43
@Sridevi ya sure. can you please show me where i can find appid?
Jun 10 10:52
i am trying it right now. i system was crashed
Jun 10 08:11
ok trying this one
Jun 10 08:10
my url is something like this

$url="https://login.microsoftonline.com/common/oauth2/authorize?client_id=$row_comp->ol_client_id&response_type=code&redirect_uri=$url_auth&response_mode=query&scope=api://$row_comp->ol_client_id/Calendars.ReadWrite%20offline_access&state=12345";
Jun 10 08:09
prnt.sc/Hts1rbgGQ03m no its showing somethig like this
Jun 10 08:08
@Sridevi the authorization code?
Jun 10 08:00
i am trying to do this from last 4 days but still not get it done
Jun 10 07:59
can you please help me on this?
Jun 10 07:59
ok now our access token is starting from eyJ0e
Jun 10 07:56
Yes
Jun 10 07:55
on graph explorer its working but its token is different than we are getting
Jun 10 07:54
yes
Jun 10 07:53
may be its happen as i have enabled 2fa code to login?
Jun 10 07:48
used this ones
https://login.microsoftonline.com/common/oauth2/authorize
https://login.microsoftonline.com/common/oauth2/v2.0/token