[英]iPhone Development - calling external JSON API (will Apple reject?)
Ok guys, so im new to iPhone development, so apologies if this is a silly question, but before i actually create my app i want to know if this is possible, and if Apple will reject this. 好的,对iPhone开发来说是新手,如果这是一个愚蠢的问题,我深表歉意,但是在我实际创建我的应用程序之前,我想知道这是否可行,以及苹果是否会拒绝。
(Note this is all theoretical) (注意,这都是理论上的)
So i'd have a API (.NET) that runs on a cloud server somewhere and can return HTML/JSON/XML. 因此,我需要在某个地方的云服务器上运行的API(.NET),并且可以返回HTML / JSON / XML。
I'll have a website that can access this API and allow customers to do some stuff (but this is not important for this question). 我将拥有一个可以访问此API并允许客户做一些事情的网站(但这对这个问题并不重要)。
I would then like my iPhone app to make a call to this API which would return JSON data. 然后,我希望我的iPhone应用程序对此API进行调用,该API将返回JSON数据。 So my iPhone app might make a call to http://myapp/Foos which would return a JSON string of Foo objects.
因此,我的iPhone应用程序可能会调用http:// myapp / Foos ,这将返回Foo对象的JSON字符串。 The iPhone app would then parse this JSON and do some funky stuff with it.
然后,iPhone应用程序将解析此JSON并对其进行一些时髦的处理。
So, that's the background, now the questions: 所以,这就是背景,现在是问题:
On this website, they seem to be doing exactly what im asking. 在这个网站上,他们似乎完全按照我的要求去做。
Thoughts, suggestions, links would be greatly appreciated... 想法,建议,链接将不胜感激...
Yes. 是。 It is possible.
有可能的。 There are quite a few apps that do similar things.
有很多应用程序可以执行类似的操作。
Slim to none. 苗条无。 Apple hinders what languages and libraries you can develop in and run on the phone.
苹果阻碍了您可以在手机上开发和运行的语言和库。 They won't limit you based on what external data you pull in to your app.
他们不会根据您输入到应用程序中的外部数据来限制您。
There shouldn't be any worries here either. 这里也不应该有任何担心。 You shouldn't run in to security concerns and there are plenty of libraries that you should be able to utilize to make your life much easier.
您不应该遇到安全问题,并且应该使用大量的库来使您的生活更轻松。
Good luck! 祝好运!
Yes it's certainly possible, and there are json parsers available already. 是的,肯定有可能,并且已经有json解析器。 Secondly, based on what you just described, should the application not break any rules outside of the scope of this question, then there is no reason I can see Apple rejecting it (except perhaps content, ie., don't display any porn or the like :)) ... Finally, you haven't properly described your application to fully answer #3, and I don't dare guess at what you meant, since it may be just a waste of your time.
其次,根据您刚刚描述的内容,如果应用程序不违反此问题的范围,则没有理由让我看到Apple拒绝它(也许内容除外,即不显示任何色情或最后,您没有正确描述您的应用程序以完全回答#3,而且我也不敢猜测您的意思,因为这可能会浪费您的时间。 Feel free to expand on your #3 in comments, I'll answer there.
随意扩大您在评论中的#3的位置,我会在那回答。
Edit: With regard to your edit of #3 above, yeah you won't have an issue here at all either. 编辑:关于以上#3的编辑,是的,您在这里也不会有任何问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.