Error in Twitter user_timeline request

0

I'm having a hard time finding some material that explains how I use the Twitter API to pick up the latest posts from a particular user and display them on my website.

According to the official documentation I got the following requisition:

GET https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name={{nome}}

Where {{nome}} is the unique identifier name of the user.

However, the result never changes:

{
  - errors: [
      - {
            message: "Bad Authentication data",
            code: 215
        }
    ]
}

In the code, I usually use the $.getJSON() function of jQuery, but I believe it would not change the scenario.

I do not think it's as simple as I thought it was. What steps should I take to reach the goal quoted at the beginning of the doubt?

    
asked by anonymous 19.06.2014 / 05:35

1 answer

2

On this same official documentation link , there is one column to the right with the following line:

  

Authentication: Required

Can you use another language to make these requests or need to do with JavaScript? If you can do this in backend , there are several wrappers ready to make your life easier, take a look in these libraries .

If not, what you basically need is to authenticate through the OAuth method.

    
19.06.2014 / 07:59