Flutter 如何集成outlook日历API,并在Flatter中从outlook日历获取事件?
我想集成outlook日历API,从outlook日历中获取事件并将其添加到我的Flatter应用程序中,但我找不到任何合适的指南,因此我的问题是如何将outlook日历API集成到我的Flatter应用程序中。首先,您要添加一个auth2客户端发布包Flutter 如何集成outlook日历API,并在Flatter中从outlook日历获取事件?,flutter,dart,microsoft-graph-api,outlook-calendar,outlook-api,Flutter,Dart,Microsoft Graph Api,Outlook Calendar,Outlook Api,我想集成outlook日历API,从outlook日历中获取事件并将其添加到我的Flatter应用程序中,但我找不到任何合适的指南,因此我的问题是如何将outlook日历API集成到我的Flatter应用程序中。首先,您要添加一个auth2客户端发布包 首先,添加o auth2客户端发布包 您可以尝试使用Outlook日历API或与之通信(与任何其他API一样)。您尝试过这个吗?您可以尝试使用Outlook日历API或与之通信(与任何其他API一样)。你试过这个吗? class Someth
首先,添加o auth2客户端发布包 您可以尝试使用Outlook日历API或与之通信(与任何其他API一样)。您尝试过这个吗?您可以尝试使用Outlook日历API或与之通信(与任何其他API一样)。你试过这个吗?
class Something{
Future fetchOutlookCalender(
{BlockCreateCustomTaskBucket provider}) async {
var client = OAuth2Client(
authorizeUrl:
'https://login.microsoftonline.com/common/oauth2/v2.0/authorize',
tokenUrl: 'https://login.microsoftonline.com/common/oauth2/v2.0/token',
redirectUri: 'com.example.upticker://oauth2redirect',
customUriScheme: 'com.example.upticker');
var token = await client.getTokenWithAuthCodeFlow(
clientId: '32502b36-55b3-44b7-88ab-cf8d0ce273dc',
scopes: ['openid profile offline_access user.read calendars.read']);
print('accesstoken: '${token.accessToken}',')
}