Commit 4846659 1 parent 4150079 commit 4846659 Copy full SHA for 4846659
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 22
22
);
23
23
24
24
if (!isset ($ app ->client_id , $ app ->client_secret )) {
25
- die ('could not create app! ' );
25
+ exit ('could not create app! ' );
26
26
}
27
27
28
28
// request oauth token for this app
Original file line number Diff line number Diff line change 25
25
exit ('account not found ' );
26
26
}
27
27
28
- print 'Found account: ' . $ account ->display_name . \PHP_EOL ;
28
+ echo 'Found account: ' . $ account ->display_name . \PHP_EOL ;
29
29
30
30
// get followers of an account (paged result)
31
31
// returns a subclass of \Illuminate\Support\Collection, which acts as a plain array
32
32
$ followers = $ client ->methods ()->accounts ()->followers ($ account ->id );
33
33
34
34
foreach ($ followers as $ follower ) {
35
- print 'Follower : ' . $ follower ->display_name . \PHP_EOL ;
35
+ echo 'Follower : ' . $ follower ->display_name . \PHP_EOL ;
36
36
}
37
37
38
38
// get the next page(s) of results
39
39
while ($ followers = $ followers ->getNextPage ()) {
40
40
foreach ($ followers as $ follower ) {
41
- print 'Follower : ' . $ follower ->display_name . \PHP_EOL ;
41
+ echo 'Follower : ' . $ follower ->display_name . \PHP_EOL ;
42
42
}
43
43
}
You can’t perform that action at this time.
0 commit comments