Roman Shamyan
Roman Shamyan
Done. But test failed. `EpiCurl->addEasyCurl` doesn't exist at library ``` $ php simpleTest.php Single test to verify everything works ok View the source of this file <?phpinclude './EpiOAuth.php';include './EpiTwitter.php';include './vendor/jmathai/php-multi-curl/EpiCurl.php';use jmathai\php_multi_curl\EpiCurl;use jmathai\twitter_async\EpiOAuth;use jmathai\twitter_async\EpiTwitter;$consumer_key = 'jdv3dsDhsYuJRlZFSuI2fg';$consumer_secret = 'NNXamBsBFG8PnEmacYs0uCtbtsz346OJSod7Dl94';$token = '25451974-uakRmTZxrSFQbkDjZnTAsxDO5o9kacz2LT6kqEHA';$secret= 'CuQPQ1WqIdSJDTIkDUlXjHpbcRao9lcKhQHflqGE8';$twitterObj = new EpiTwitter($consumer_key, $consumer_secret, $token, $secret);$twitterObjUnAuth = new EpiTwitter($consumer_key, $consumer_secret);?><h1>Single test to verify everything works ok</h1><h2><a href="javascript:void(0);" onclick="viewSource();">View the source of this file</a></h2><div id="source" style="display:none; padding:5px; border: dotted 1px #bbb; background-color:#ddd;"><?php highlight_file(__FILE__); ?></div><hr><h2>Generate the authorization link</h2><?php echo $twitterObjUnAuth->getAuthenticateUrl(); ?><hr><h2>Verify credentials</h2><?php $creds = $twitterObj->get('/account/verify_credentials.json');?><pre><?php print_r($creds->response); ?></pre><hr><h2>Post status</h2><?php $status = $twitterObj->post('/statuses/update.json', array('status' => 'This a simple test from twitter-async at ' . date('m-d-Y h:i:s')));?><pre><?php print_r($status->response); ?></pre><script> function viewSource() { document.getElementById('source').style.display=document.getElementById('source').style.display=='block'?'none':'block'; } </script> Generate the authorization...
Got same error