Getting the twitter JSON
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Getting the twitter JSON

  1. #1
    Join Date
    Sep 2008
    Location
    The Netherlands
    Posts
    22

    Getting the twitter JSON

    Hello,

    I'm trying to get the JSON string from a twitter timeline by sending a XMLHttpRequest with the URI of the timeline: http://twitter.com/statuses/public_t...lback=timeline. I tried to put this into a xmlHttpRequest but it returns null. Is this a security issue or something?. Can someone explain me how to get the JSON string ?.

    Thanks.

  2. #2
    Join Date
    Nov 2009
    Posts
    31

    Re: Getting the twitter JSON

    IIRC XMLHttpRequest can only request pages from site it's served from (so unless the java script in on twitter.com it can't fetch from twitter.com

  3. #3
    Join Date
    Sep 2008
    Location
    The Netherlands
    Posts
    22

    Re: Getting the twitter JSON

    In't there a workaround?

  4. #4
    Join Date
    Nov 2009
    Posts
    31

    Re: Getting the twitter JSON

    Quote Originally Posted by TimothyH View Post
    In't there a workaround?
    yes, use XMLHttpRequest to connect a server side script like php on your server, and that script use normal transfer protocol to fetch the data.
    Last edited by Roguebfl; January 17th, 2010 at 04:23 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center