forked from jmathai/twitter-async
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsequencerTest.php
27 lines (23 loc) · 887 Bytes
/
sequencerTest.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
include dirname(__FILE__).'/../EpiCurl.php';
include dirname(__FILE__).'/../EpiOAuth.php';
include dirname(__FILE__).'/../EpiTwitter.php';
include dirname(__FILE__).'/../EpiSequence.php';
$consumer_key = 'jdv3dsDhsYuJRlZFSuI2fg';
$consumer_secret = 'NNXamBsBFG8PnEmacYs0uCtbtsz346OJSod7Dl94';
$token = '25451974-uakRmTZxrSFQbkDjZnTAsxDO5o9kacz2LT6kqEHA';
$secret= 'CuQPQ1WqIdSJDTIkDUlXjHpbcRao9lcKhQHflqGE8';
$twitterObj = new EpiTwitter($consumer_key, $consumer_secret, $token, $secret);
$twitterObj->useAsynchronous(true);
?>
Test sequencing diagram of api calls
<?php
$creds = array();
$creds[] = $twitterObj->get('/direct_messages.json');
$creds[] = $twitterObj->get('/users/suggestions.json');
$creds[] = $twitterObj->get('/statuses/public_timeline.json');
foreach($creds as $cred) {
$cred->responseText;
}
echo EpiCurl::getSequence()->renderAscii();
?>