PHP code example of johnshopkins / twitterhook
1. Go to this page and download the library: Download johnshopkins/twitterhook library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
johnshopkins / twitterhook example snippets
umer = array(
"key" =>"consumerkey",
"secret" => "consumersecret"
);
$token = array(
"key" =>"accesstoken",
"secret" => "accesstokensecret"
);
$twitterHook = new \TwitterHook\Client($consumer, $token);
$content = $twitterHook->get("statuses/home_timeline");
$tweet = $twitterHook->post("statuses/update", array(
"status" => "You would not believe how I posted this tweet.",
));