abraham/twitteroauth php on WebMatrix
Last post Sep 07, 2016 09:58 AM by Yuk Ding
Sep 06, 2016 03:31 AM|silvanet1|LINK
I'd like to use abraham/twitteroauth. It's available on github. It used to be manually installed and configured, but now it is using composer to manage php dependencies. I haven't figured out how to use that yet, but I'm pretty sure you can't install it
on a shared web hosting service like GoDaddy. From what I understand what you need to do is set up a development environment on your local machine and push the final tested project to your server. I haven't figured out how to even get it to work on my hosting
service, so I'd like to see if it is possible to install and configure it on my IIS lohalhost using WebMatrix. I can't find much anything on it although a lot of people are using it. I see most are setting it up using xampp. Does anyone in this forum know
how to set up Webmatrix3 to run a Twitter app to use the Twitter API using abraham's twitteroauth with or without Composer?
Sep 07, 2016 09:58 AM|Yuk Ding|LINK
You could install TwitterOAuth use either composer installation or manual installation.
Webmatrix is just the light-weight IDE to deploy PHP website. You could configure It like in XAMPP.
The recommended and easy as pie method is Composer. Setup require in your projects composer.json file. Latest release.
The manual install:
2.Start making API requests:
$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $access_token, $access_token_secret);
$content = $connection->get("account/verify_credentials");
The setup require in your projects composer.json file as well
composer require abraham/twitteroauth
2.Import the TwitterOAuth class.
3.Start making API requests.
Besides,you could learn how to use twitter ApI through the documentation: