One Driver iOS整合 [英] One Driver iOS integartion
问题描述
Hello Team,
我正在使用onedrive整合为本地ios创建一个应用程序。我已经成功地为onedrive sdk安装了pod。现在使用ODCClient,当我使用带有应用程序ID和范围的setMicrosoftAccountAppId创建请求时,我有应用程序ID,但不是
了解范围参数。如何以及我应该通过什么,我也调查了你的文档中的范围,他们给了一些范围,比如onedrive.readonly等,我用它们但是我收到了Invile范围的错误。
你能不能请指导我这个。我的代码段在这里: -
Hello Team,
I am creating an app for native ios with integartion of onedrive. I have successfully inteall the pod for onedrive sdk. Now with ODCClient when I create a request with setMicrosoftAccountAppId with app id and scope, I have the application id but doesn't
understand the scopes paramter. How and what should I pass, I also looked into the scopes in your doc they have give some scopes like onedrive.readonly etc, I used them but I am getting error of Invile scope.
can you please guide me on this. My code snippet is here :-
ODClient 。 setMicrosoftAccountAppId (" 79bd7ad9-53c1-4816 -a007-ca5a17b6b240" ,范围:
[" onedrive.readonly" ])
ODClient.setMicrosoftAccountAppId("79bd7ad9-53c1-4816-a007-ca5a17b6b240", scopes: ["onedrive.readonly"])
   
      ODClient 。 client {(odcClient,error)
ODClient.client { (odcClient, error) in
       
          如果 错误!=
nil {
if error != nil {
           
          }
}
      }
来自您的范围的参考: - https://docs.microsoft.com/en-us/onedrive/developer/rest-api/getting-started/msa-oauth?view = odsp -graph-online#authentication-scopes
}
Reference from your scopes :- https://docs.microsoft.com/en-us/onedrive/developer/rest-api/getting-started/msa-oauth?view=odsp-graph-online#authentication-scopes
错误: -
Error :-
ODAuthErrorKey =" https://login.live.com/oauth20_desktop.srf?error = invalid_scope& error_description =的%20provided%20value%20for%第二十条%20input%20parameter%20%27scope%27%图20是%20not%20valid%第二十条%20scope%20%27https://graph.microsoft.com/readonly%27%20does% 20not%20exist。& lc = 1033";
ODAuthErrorKey = "https://login.live.com/oauth20_desktop.srf?error=invalid_scope&error_description=The%20provided%20value%20for%20the%20input%20parameter%20%27scope%27%20is%20not%20valid.%20The%20scope%20%27https://graph.microsoft.com/readonly%27%20does%20not%20exist.&lc=1033";
问候
Rakesh Bajeli
Regards
Rakesh Bajeli
推荐答案
本论坛主要关注Bing Ads API开发。有关Microsoft Graph的帮助,您可以在
StackOverflow 上发布问题。另请参阅: 开始使用适用于iOS的OneDrive SDK 和
OneNote快速入门教程。
This forum is focused on Bing Ads API development. For help with the Microsoft Graph you can post a question on StackOverflow. See also: Get Started with the OneDrive SDK for iOS and OneNote Quick Start Tutorial.
我希望这有帮助,
Eric
这篇关于One Driver iOS整合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!