Esempio n. 1
0
        public void addFriendsTest()
        {
            List <string> members_username = new List <string> {
                "jintian"
            };
            ResponseWrapper content = client.addFriends("xiaohuihui", members_username);

            Assert.AreEqual(content.responseCode, HttpStatusCode.Created);
        }
        public static void Main(string[] args)
        {
            FriendClient  client           = new FriendClient(app_key, master_secret);
            List <string> members_username = new List <string> {
                "jintian"
            };

            client.addFriends("xiaohuihui", members_username);
            Console.ReadLine();
        }