【发布时间】:2015-11-27 02:22:37
【问题描述】:
我正在尝试为 oneDrive REST API 创建一个下载网址
NSString *downloadUrl = [NSString stringWithFormat:@"https://apis.live.net/v5.0/%@/content?suppress_redirects=true?access_token=%@",
[file objectForKey:@"id"],
[ApiManager sharedInstance].liveClient.session.accessToken
];
这是我的代码, 但是它给我的错误是找不到访问令牌。如果我删除抑制重定向,它会起作用并生成一个要下载的 url。但是我想跳过这个重定向网址。
这里解释了查询
https://msdn.microsoft.com/en-us/library/office/dn659726.aspx
我该如何解决这个问题?
【问题讨论】:
标签: ios objective-c onedrive