I'm new to OAuth
I want to know how to use the "Twitter OAuth library from Abraham Wiliam" to get user credentials such as screen_name.
Download this library https://github.com/abraham/twitteroauth You only need the twitteroauth.php and OAuth.php files. Include only twitteroauth.php .
Here's a sample Twitter: https://dev.twitter.com/docs/auth/oauth/single-user-with-examples#php
After declaring the function getConnectionWithAccessToken()and variable $connectionwith valid application tokens , just try the code
getConnectionWithAccessToken()
$connection
$user = $connection->get("account/verify_credentials"); print $user->screen_name;
API REST Twitter
, : - http://api.twitter.com/1/users/show/StephenFry.xml ..
Source: https://habr.com/ru/post/1750629/More articles:Inability to detect output from inside a SSIS script component - ssisСтроковые кавычки при экспорте сетки Mathematica в виде векторной графики - wolfram-mathematicaSilverlight: create image from silverlight controls - c #NSURLConnection shown as a device leak - memory-managementTableLayout with images and text - androidbash: flushing stdin (standard input) - bashRendering partial to a table row with form_tag is getting crazy! - htmlHow to write INT64 in CString - c ++Escaping from C #, a little puzzled - c #Column of time sqlite3 - sqlAll Articles