Page 1 of 1

Json web service 4 iPhone

Posted: Tue Feb 23, 2010 6:45 am
by quique
Ok ive got the iphone app reading the json echoed by the php reading mySQL. However, i tried it with just one user so i had the iphone add read a hardcoded user.php file echoing the json string.

Now i want to make it like the twitter app from Presence Stanford where the TwitterHelper class is able, (i think because of the API, so the solution to this will be a server side coding in php presenting json), to read individual users status info. The string in that app reads something like NSURL http://%@/users/json/%@.json, where the first %@ is just the twitter.com server and i assume the %@.json refers to the particular user passed in from the authentication.

So my question is, server-side, is the API producing a page per user on request from the iphone app? So my php now needs to be like the action part of an html form, receiving a username and then getting that record from the db and producing a new page upon request called user.json? Im not sure im clear on this? So the server will have as many user.json pages as i have users in my application? All those pages, albeit small cause theyre just json files, will be physically residing on the server at once? Or do they get momentarily produced and then deleted?

Re: Json web service 4 iPhone

Posted: Tue Feb 23, 2010 9:53 am
by pickle
Double post.

Locked.