Hi,
The credentials are passed in through the HTTP header, which is why
you don't see parameters in the API docs to accept these values.

For example, if you are familiar with the UNIX command cURL you can
get the friends_timeline from the command line:

% curl --basic --user <user>:<pass> 
http://twitter.com/statuses/friends_timeline.json

Many people also leverage cURL in their PHP scripts with something
like:

  $url = "http://twitter.com/statuses/friends_timeline.json";;
  $user = "<user>";
  $pass = "<pass>";
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, $url);
  curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 4);
  curl_setopt($ch, CURLOPT_VERBOSE, 1);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_USERPWD, $user . ":" . $pass);
  $data = curl_exec($ch);
  curl_close($ch);

If you give more information on what programming environment you are
using and I can try to get you an example to get you started.

@dougw

On Jan 21, 3:05 am, "gautam.shiv...@gmail.com"
<shivani_gau...@rediffmail.com> wrote:
> hello,
> i am trying to send the username and password with friends_timeline
> option to get the recent records but am not able to as there is no
> option given in rest API documentation as to how to send that url
> appended with both username and password.
> need solution for that

Reply via email to