Re: [twitter-dev] About OAuth

2010-09-04 Thread Abraham Williams
Have a look at http://gist.github.com/564882

Abraham
-
Abraham Williams | Hacker Advocate | http://abrah.am
@abraham | http://projects.abrah.am | http://blog.abrah.am
This email is: [ ] shareable [x] ask first [ ] private.


On Thu, Sep 2, 2010 at 19:50, David dav...@alltraders.com wrote:

 I found out twitter does not support Basic Auth any, and I wonder how
 can I change my code from  Basic Auth to OAuth.

 and my code like following:

 $username=username;
$password=password;
$message=message;
$host = http://twitter.com/statuses/update.xml;;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $host);
//curl_setopt($ch, CURLOPT_VERBOSE, 1);
//curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, $config-timeout );
curl_setopt($ch, CURLOPT_USERPWD, $username:$password);
curl_setopt($ch, CURLOPT_POSTFIELDS,status=$message);
//curl_setopt($ch, CURLOPT_HTTP_VERSION,
 CURL_HTTP_VERSION_1_1);
curl_setopt($ch, CURLOPT_POST, 1);
$result = curl_exec($ch);
// Look at the returned header
$resultArray = curl_getinfo($ch);
curl_close($ch);

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


[twitter-dev] About OAuth

2010-09-03 Thread David
I found out twitter does not support Basic Auth any, and I wonder how
can I change my code from  Basic Auth to OAuth.

and my code like following:

$username=username;
$password=password;
$message=message;
$host = http://twitter.com/statuses/update.xml;;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $host);
//curl_setopt($ch, CURLOPT_VERBOSE, 1);
//curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, $config-timeout );
curl_setopt($ch, CURLOPT_USERPWD, $username:$password);
curl_setopt($ch, CURLOPT_POSTFIELDS,status=$message);
//curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
curl_setopt($ch, CURLOPT_POST, 1);
$result = curl_exec($ch);
// Look at the returned header
$resultArray = curl_getinfo($ch);
curl_close($ch);

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


[twitter-dev] About oauth autentication

2010-06-01 Thread lu5ceh
Quering feeds that do not require OAuth authentication may still be
using the old REST API method?


[twitter-dev] About OAuth of Twitter

2010-05-27 Thread emagic
We use OAuth login in our application for a long time, but the links
are sth. like: http://twitter.com/oauth/request_token;, and we just
found the new one should be sth. like  
http://api.twitter.com/oauth/request_token;.
It seems what we have now is OAuth 1.0A as mentioned in documents. We
are not sure what should we change to avoid broken after June 30th.
Any suggestions? Thank you.



Re: [twitter-dev] About OAuth of Twitter

2010-05-27 Thread Taylor Singletary
You're safe to continue using the non-api-subdomain version of OAuth for
awhile longer (it won't disappear on June 30th), but we recommend switching
to using the api subdomain (and SSL!) pro-actively in the event we decide to
be stricter here in the future. But we have no immediate plans to invalidate
such requests at this time.

Taylor Singletary
Developer Advocate, Twitter
http://twitter.com/episod


On Thu, May 27, 2010 at 3:17 PM, emagic emaginations...@gmail.com wrote:

 We use OAuth login in our application for a long time, but the links
 are sth. like: http://twitter.com/oauth/request_token;, and we just
 found the new one should be sth. like 
 http://api.twitter.com/oauth/request_token;.
 It seems what we have now is OAuth 1.0A as mentioned in documents. We
 are not sure what should we change to avoid broken after June 30th.
 Any suggestions? Thank you.




[twitter-dev] about OAuth

2009-10-10 Thread Oguzhan

Hi Folks,

I'm using OAuth in my twitter application and I was wondering
something.

Have received the user's permission by OAuth.
I saved my database oauth_token after for example one day later. Can I
update twitter status with my saved oauth_token?





[twitter-dev] About OAuth authorization

2009-07-09 Thread praveen kumar
Hi,

I would like to develop a tool on Twitter, i have few  doubts. Please
clarify.

1. What is the use of OAuth authorization ?

2. From Twitter API we can update tweets without OAuth authorization. Why
this OAuth authorization?


-- 
Regards,
Praveen Kumar .N
Software Engineer
Netelixir e-Marketing Solutions
Hyderabad
www.netelixir.com