[twitter-dev] Simple way to get user timeline?
Hello I just joined this group because today I noticed the twitter page i had on my site was no longer working due to the change in Twitter's API. Previously I was using php code I found online that made use of CURL with basic authentication but unfortunately that no longer works. I've looked through the API documentation but it seems that everything with oauth involves having the visitor authorize their account to be used with my application however all I'm looking for is a simple way (without using the widget) to post my user timeline on a php page. Can anyone point me in the right direction? -- 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
Re: [twitter-dev] Simple way to get user timeline?
In your applications profile, there is a section for your own tokens which eradicates the need for pushing through the user authentication process. You can use a library to make OAuth requests from that point on, one of which calls will be the user_timeline. Scott. On 1 Sep 2010, at 08:17, quick5pnt0 wrote: Hello I just joined this group because today I noticed the twitter page i had on my site was no longer working due to the change in Twitter's API. Previously I was using php code I found online that made use of CURL with basic authentication but unfortunately that no longer works. I've looked through the API documentation but it seems that everything with oauth involves having the visitor authorize their account to be used with my application however all I'm looking for is a simple way (without using the widget) to post my user timeline on a php page. Can anyone point me in the right direction? smime.p7s Description: S/MIME cryptographic signature
Re: [twitter-dev] Simple way to get user timeline?
1. register your app at dev.twitter.com to get your set of keys 2. get a hold of and install the twitter_oauth.php class 3. add in the getConnectionWithAccessToken function (I forget where it's available) 4. make your calls like this... (you will use get instead of post, and make the appropriate request for your statuses) $PMconnection = getConnectionWithAccessToken ($pm_consumer_key,$pm_consumer_secret,$pm_access_token, $pm_access_secret); $PMsuccess = $PMconnection-post('https://api.twitter.com/1/statuses/ update.json', array('status' = $thisTweet)); hope this helps On Sep 1, 2010, at 1:17 AM, quick5pnt0 wrote: Can anyone point me in the right direction? -- 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