简体   繁体   English

iPhone开发-调用外部JSON API(Apple会拒绝吗?)

[英]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: 所以,这就是背景,现在是问题:

  1. Is this possible? 这可能吗? (that is, call an external cloud API over HTTP, parse JSON response?) (也就是说,通过HTTP调用外部云API,解析JSON响应吗?)
  2. What are the chances of Apple rejecting this application (because it would be calling a non-Apple API) Apple拒绝此应用程序的可能性是多少(因为它将调用非Apple API)
  3. Are there any limitations (security, libraries, etc) on the iPhone/Objective-C/Cocoa that might hinder this solution? iPhone / Objective-C / Cocoa是否有任何限制(安全性,库等),可能会妨碍此解决方案? In regards to Security - can you freely make a HTTP (or even HTTPS call) from inside an iPhone app, and parse the response? 关于安全性-您可以从iPhone应用程序内部自由进行HTTP(甚至HTTPS调用),并解析响应吗? In regards to libraries - is there sufficient support in Objective-C/Cocoa to accomplish this? 关于库-在Objective-C / Cocoa中是否有足够的支持来实现这一目标?

On this website, they seem to be doing exactly what im asking. 这个网站上,他们似乎完全按照我的要求去做。

Thoughts, suggestions, links would be greatly appreciated... 想法,建议,链接将不胜感激...

  1. Yes. 是。 It is possible. 有可能的。 There are quite a few apps that do similar things. 有很多应用程序可以执行类似的操作。

  2. 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. 他们不会根据您输入到应用程序中的外部数据来限制您。

  3. 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.

相关问题 Apple / iPhone开发IDE首选项? - Apple/iPhone Development IDE Preferences? 苹果会因为内存使用量增加而拒绝我的iPhone应用程序吗? - Will Apple reject my iPhone application because of increasing memory usage? 如果他们不考虑新的iPhone 5分辨率,Apple会否拒绝新的应用程序? - Will Apple reject new apps if they are not considering the new iPhone 5 resolution? 苹果拒绝了我的应用程序,因为使用私有Api-allowAnyHTTPSCertificateForHost,为什么? - Apple reject my App, because using private Api - allowsAnyHTTPSCertificateForHost,Why? iPhone开发-调用协议方法(不起作用) - iPhone development - calling protocol methods (not working) 有关在我的 iPhone/iPad 应用程序中处理付款的问题。 苹果会拒绝吗? - Questions around handling payments within my iPhone/iPad app. Will Apple reject? 我应该选择iPhone的Flash / Java开发还是继续使用Apple工具? - Should I go for Flash/Java for iPhone development or continue with Apple tools? iPhone开发 - 访问Apple的默认图标图像 - iPhone Development - Access Apple's default Icon images 使用Appcelerator Titanium而不是Apple开发开发iPhone应用程序的优点/缺点 - Advantages/Disadvantages on developing iPhone apps with Appcelerator Titanium instead Apple development Apple G5 Mac 是否足够强大,可以在其上进行 Iphone 游戏开发? - Is Apple G5 Mac powerful enough to do Iphone Game Development on?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM