This project is read-only.

how to display karma

Apr 1, 2010 at 9:56 PM

I just want to ask how to get a user's karma and then display it.

I still confuse with this library, but I think it is usefull

Thanks

Apr 13, 2010 at 2:05 PM
Edited Apr 19, 2010 at 10:15 AM

checkout the lastest version source code and try the sample code below to show your karma and the top ten friends' karma value

            var api = new PlurkApi.PlurkApi("your api key");
            const string userName = "your username"; 
            const string passWord = "your password"; 
            if (api.login(userName, passWord))
            {
                Console.WriteLine(api.userInfo.karma);

                var friends = api.getFriends(10);
                foreach (var friend in friends)
                {
                    Console.WriteLine(string.Format("{0} : {1}", friend.full_name, friend.karma));
                }
            }

Apr 22, 2010 at 7:01 AM

hi, thanks for the tutorial, it works !

now I must focus to create my application.

thanks