iPhone Development - calling external JSON API (will Apple reject?)
Posted
by RPM1984
on Stack Overflow
See other posts from Stack Overflow
or by RPM1984
Published on 2010-06-15T02:00:07Z
Indexed on
2010/06/15
2:02 UTC
Read the original article
Hit count: 235
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.
(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.
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).
I would then like my iPhone app to make a call to this API which would return JSON data. So my iPhone app might make a call to http://myapp/Foos which would return a JSON string of Foo objects. The iPhone app would then parse this JSON and do some funky stuff with it.
So, that's the background, now the questions:
- Is this possible? (that is, call an external cloud API over HTTP, parse JSON response?)
- What are the chances of Apple rejecting this application (because it would be calling a non-Apple API)
- Are there any limitations (security, libraries, etc) on the iPhone/Objective-C/Cocoa that might hinder this solution?
On this website, they seem to be doing exactly what im asking.
Thoughts, suggestions, links would be greatly appreciated...
© Stack Overflow or respective owner