Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flutter 如何集成outlook日历API,并在Flatter中从outlook日历获取事件?_Flutter_Dart_Microsoft Graph Api_Outlook Calendar_Outlook Api - Fatal编程技术网

Flutter 如何集成outlook日历API,并在Flatter中从outlook日历获取事件?

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

我想集成outlook日历API,从outlook日历中获取事件并将其添加到我的Flatter应用程序中,但我找不到任何合适的指南,因此我的问题是如何将outlook日历API集成到我的Flatter应用程序中。

首先,您要添加一个auth2客户端发布包


首先,添加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}',')
}