Geeks With Blogs


Add to Google

Tim Hibbard CEO for EnGraph software
BrightKite is a location aware social network.  It allows you to post notes and pictures at a specific place.  It also will write to your Twitter stream so your friends can keep up with your latest activity.

They also have an API, which I had the chance to play with the other night.  Here is some very simple code that will write out a list of all your friends:

        public static void ListFriends(string username, string password)
            string url = "";
            WebRequest WRequest = WebRequest.Create(url) as HttpWebRequest;
            WRequest.Timeout = 10000;
                "Basic " + Convert.ToBase64String(
                Encoding.ASCII.GetBytes(username + ":" + password)));
            using (HttpWebResponse response = WRequest.GetResponse() as HttpWebResponse)
                StreamReader reader = new StreamReader(response.GetResponseStream());
                XElement element = XElement.Load(reader);
                foreach (XElement node in element.Elements("person"))
                    string place = node.Element("place").Element("name").Value;
                    string person = node.Element("fullname").Value;
                    Console.WriteLine("{0} checked in at {1}",person,place);

My BrightKite = timhibbard
My Twitter = timhibbard

Posted on Monday, November 10, 2008 2:19 PM .NET , Social Geocoding | Back to top

Comments on this post: Getting BrightKite friends using C# and LINQ

# re: Getting BrightKite friends using C# and LINQ
Requesting Gravatar...
now watch out the the pro kabaddi now and get the absolute teams list for the team list now get the pro kabaddi teams

pro kabaddi
now on the online TV
Left by alekya on Jan 15, 2016 9:19 AM

Your comment:
 (will show your gravatar)

Copyright © Tim Hibbard | Powered by: