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? Am I right in thinking this is how the Twitter API works?
Json web service 4 iPhone
Moderator: General Moderators
Re: Json web service 4 iPhone
Why did you double post? how is this related to theory and design?
Re: Json web service 4 iPhone
ok well i just came from the iphonedevsdk forum because i was told this post didnt belong there because it was php related. i posted here because if you read my post youll see that im interested in knowing if my design idea for the php serverside api is correct?
I need someone who took the stanford course online last semester and knows the TwitterHelper class used in it which connects to the Twitter API to tell me if that is in fact what that API does, create a file per user upon request, and if so, how i can re-create that api part on my server using php so that my iphone app can read the json files created by it since at the moment i just have it read a generic single php file generating json strings.
I need someone who took the stanford course online last semester and knows the TwitterHelper class used in it which connects to the Twitter API to tell me if that is in fact what that API does, create a file per user upon request, and if so, how i can re-create that api part on my server using php so that my iphone app can read the json files created by it since at the moment i just have it read a generic single php file generating json strings.