本文介绍了iOS上的dropbox应用程序是否具有网址方案?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在我的应用程式中启动dropbox应用程式。因此,我想知道如果dropbox应用程序有一个URL方案,我可以使用调用openURL,类似这样,除非我不知道这个字符串应该是什么。
NSURL * myURL = [NSURL URLWithString:@dropbox://];
[[UIApplication sharedApplication] openURL:myURL];感谢,解决方案 / div> Dropbox url方案唯一可以做的就是将Dropbox应用程序连接到它。
像这样:
var key =[您的API键]
var secret =[您的API秘密];
var apiversion =1;
window.open(dbapi-1://+ apiversion +/ connect?k =+ key +& s =+ secret);
通常,通过使用以下方案打开您的iOS应用,Dropbox-app响应:
db- [您的API密钥]:// connect?oauth_token = SOMETOKEN& oauth_token_secret = SOMEOATHTOKEN& uid = SOMETHING
或:
db- [您的API密钥]://取消
通过查看Dropbox SDK for iOS。 / p>
I would like to be able to launch dropbox app within my app. Therefore I would like to know if dropbox app has a URL scheme that I can use to call openURL, something like this except I don't know what this string should be.
NSURL *myURL = [NSURL URLWithString:@"dropbox://"];
[[UIApplication sharedApplication] openURL:myURL];
Thanks,
解决方案 The only thing you can do with the Dropbox url-scheme is connect your Dropbox App to it.Like this:
var key = "[YOUR API KEY]";
var secret = "[YOUR API SECRET]";
var apiversion = "1";
window.open("dbapi-1://"+apiversion+"/connect?k="+key+"&s="+secret);
Normally the dropbox-app responses by opening your iOS app with the following scheme:
db-[YOU API KEY]://connect?oauth_token=SOMETOKEN&oauth_token_secret=SOMEOATHTOKEN&uid=SOMETHING
or with:
db-[YOU API KEY]://cancel
Got this from looking at the Dropbox SDK for iOS.
这篇关于iOS上的dropbox应用程序是否具有网址方案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-12 21:28