Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.
Doubt apple will approve this. But you would just need to the the url for the twitter feed ( see twitter API ), then you can use NSURLConnection to download and NSXMLParser to parse the feed and show it in a table or what ever.
Cheers that's really helpful... do you know of a tutorial/sample code on how to parse that data? - I have no idea, never used data from the internet in an app before!
Cheers that's really helpful... do you know of a tutorial/sample code on how to parse that data? - I have no idea, never used data from the internet in an app before!
This tutorial contain the code to do a http request, and also to parse data with NSXMLParser for xml or with JSON Framework for json: WebService [How-To]
lexy0202;340545 said:
Also what is json? - All I know is that it's used in web APIs!
Thanks, Alex
JSON as you can see in the tutorial above is just a textual standard to present data (the same concept of xml)
lexy0202;340546 said:
Could this write code that could parse it for you... ?
Have been using JSON for a while now without a problem.
Up till now.
My app loads the twitter feed fine the first time it loads, but recently I've added a reload button, and as soon as I hit reload, it gives me a twitter error (in HTML). All it tells me is 'Something is technically wrong'.
I'm using the ASIHTTPRequest as demonstrated in the flickr async tutorial, plus I have managed to get reloading to work for images before, so I don't know why it won't work with twitter.
What puzzles me is it is a server-side error, is the framework making a bad request or something??
Replies
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeBy user's twitter feed I mean company (the app's for the company) - This is a very small part of the app...
Would they still not approve that?
Alex
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesomeyou can change json in xml if you prefer to have output in xml.
you can see more option here
GET statuses/user_timeline | dev.twitter.com
you need to use ASIHTTPRequest or NSURLConnection to download the timeline from that link and then parse with NSXMLParser or JSON Framework.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeThanks,
Alex
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeObjectify on the Mac App Store
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeJSON as you can see in the tutorial above is just a textual standard to present data (the same concept of xml)
No, this should just create Class from JSON....However is a good tool....but read the tutorial, you don't need more than that.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeHave been using JSON for a while now without a problem.
Up till now.
My app loads the twitter feed fine the first time it loads, but recently I've added a reload button, and as soon as I hit reload, it gives me a twitter error (in HTML). All it tells me is 'Something is technically wrong'.
I'm using the ASIHTTPRequest as demonstrated in the flickr async tutorial, plus I have managed to get reloading to work for images before, so I don't know why it won't work with twitter.
What puzzles me is it is a server-side error, is the framework making a bad request or something??
Thanks,
Alex
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesomeyes, seem to be a server error, maybe caused by a wrong approach of using ASIHTTPRequest...
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeAlex
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeThen load tweets method kicks off the d/l
Finally requestDone method:
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome