2

I have two online banner (flash and HTML5) using twitter feed when API 1.0 . We know that API 1.0 can get the feed by a URL directly. (Just like: http://api.twitter.com/1/statuses/user_timeline/annrubin.json?count=3)

How can I get the feed like XML format? Because flash banner is difficult to use HTML code.

Jimbo
  • 25,790
  • 15
  • 86
  • 131
KasaYiu
  • 33
  • 1
  • 4
  • did my post help, did you find a solution? – Jimbo Jun 20 '13 at 11:12
  • Still trying. But I don't know how to authenticate in Flash. For HTML5, I follow "Embedded Timelines" and success to add a timeline in the banner. But I can't remove the "Retweeted" data. – KasaYiu Jun 21 '13 at 03:00
  • So, if my answer was correct / helped? could you upvote / tick? If not, might as well delete it because it didn't help :) – Jimbo Jun 21 '13 at 08:34

1 Answers1

2

You need to upgrade to the 1.1 version of the API. It's been plastered all over the API docs for months that the 1.0 API (the one you're currently using) is being removed.

Also, the twitter API no longer returns XML format. They made the good decision to return all data in JSON. From the FAQ:

API v1.1 will support JSON only. We’ve been hinting at this for some time now, first dropping XML support on the Streaming API and more recently on the trends API. XML, Atom, and RSS are infrequently used today, and we’ve chosen to throw our support behind the JSON format shared across the platform. Consequently, we’ve decided to discontinue support for these other formats.

You can't make client-side (JS / jQuery / AJAX) requests to the twitter API any more as of 11th June 2013. You need to pick up a server-side language to make authenticated requests (if you choose PHP, check this link).

Community
  • 1
  • 1
Jimbo
  • 25,790
  • 15
  • 86
  • 131
  • Hi Jimbo, thanks for your reply. Actually I have try the [ https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=IBMSmarterMktg&count=2 ] but it have error 215. So how to get the data? – KasaYiu Jun 19 '13 at 01:53
  • 1
    @KasaYiu All requests **must be authenticated**. This means you **must** follow the steps in the post above. You can't just type that URL into the address bar any more. It won't work. – Jimbo Jun 19 '13 at 08:40