This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//sharing this logic because twitter doesn't give you and end point to get mutual relationships (uses zend mvc framework for requests but it is easy enough to use something else to make the API requests) | |
//note: $this->source variable is a standard object that holds access token and user information for the user doing the requests | |
$cursor = -1; //initial position for twitter API friends and follower endpoint (important for users with more then 5000 followers/friends) | |
do { | |
//get the first 5000 following ids | |
$client = new Zend_Http_Client; | |
$client->setUri('https://api.twitter.com/1/friends/ids.json'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Day job: | |
Web Application Developer | |
What is your language of choice: | |
PHP | |
Open Source contributions: | |
Some js classes | |
How do you use GitHub: | |
At work and for personal projects. |
NewerOlder