Skip to content

Instantly share code, notes, and snippets.

View 4x4notfound's full-sized avatar

4x4NotFound 4x4notfound

  • Canada
View GitHub Profile
@4x4notfound
4x4notfound / mutualTwitterFriends.php
Created January 10, 2012 23:14
PHP Script to get Twitter mutual relationship ids and their user details
//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');
@4x4notfound
4x4notfound / Questions
Created September 6, 2011 20:44
GOTO Amsterdam
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.