A big thanks. Made it fairly easy to implement OAuth on my site. Only
thing I did was add a line to parse the verify_credentials xml into an
assoc array
$authXml = $twAuthHandle->OAuthRequest('https://twitter.com/
account/verify_credentials.xml', array(), 'POST');
> $_SESSION['some_key'] = $authXml;
> $twAuthInfo = new SimpleXMLElement($authXml);
Also, ended up storing the xml in the session (so I dont have to call
verify_credentials on page refresh).
--
Unmesh
http://sadakmap.com/twitter
http://twitter.com/sadakmap
On Feb 15, 7:03 am, Abraham Williams <[email protected]> wrote:
> I wrote up some example code to get OAuth working in PHP.
>
> Code:http://github.com/poseurtech/twitteroauth
> Live example:http://twitter.abrah.am
> Docs:https://docs.google.com/View?docID=dcf2dzzs_2339fzbfsf4
>
> Feel free to contact me if you have any questions/find bugs/etc.
>
> I'm working on convertinghttp://github.com/jdp/twitterlibphpto use OAuth
> and should have that complete in a few days.
>
> Abraham
> @poseurtech
>
> --
> Abraham Williams |http://the.hackerconundrum.com
> Web608 | Community Evangelist |http://web608.org
> This email is: [x] blogable [ ] ask first [ ] private.
> Sent from: Madison Wi United States.