Пример #1
0
        public void TestUserTimeline()
        {
            //statuses/user_timeline
            var result = oauthAPI.Call(HttpMethod.GET, "http://open.t.qq.com/api/statuses/user_timeline", "format=json&pageflag=0&reqnum=20&name=dinglingtao");

            Assert.IsNotNull(JSON.JsonDecode(result));
        }
Пример #2
0
        public void TestTrends()
        {
            //trends
            var result = oauthAPI.Call(HttpMethod.GET, "http://api.t.sina.com.cn/trends.json", "user_id=1035923322");

            Assert.IsNotNull(JSON.JsonDecode(result));
        }
Пример #3
0
        public void TestUserTimeline()
        {
            //statuses/user_timeline
            var result = oauthAPI.Call(HttpMethod.GET, "http://api.t.163.com/statuses/user_timeline.json", "screen_name=senlinzhimei&count=30");

            Assert.IsNotNull(JSON.JsonDecode(result));
        }
Пример #4
0
        public void TestFriendshipsCreate()
        {
            TestFriendshipsDestroy();

            //friendships/create
            var result = oauthAPI.Call(HttpMethod.POST, "http://api.t.sina.com.cn/friendships/create.json", "user_id=1771615175");

            Assert.IsNotNull(JSON.JsonDecode(result));
        }
Пример #5
0
        public void TestShow()
        {
            //statuses/show
            var result = oauthAPI.Call(HttpMethod.GET, "http://api.t.sina.com.cn/statuses/show/3355650084584979.json", "");

            Assert.IsNotNull(JSON.JsonDecode(result));
        }
Пример #6
0
        public void TestUserInfo()
        {
            //user/other_info
            var result = oauthAPI.Call(HttpMethod.GET, "http://open.t.qq.com/api/user/other_info", "format=json&name=gantingting");

            Assert.IsNotNull(JSON.JsonDecode(result));
        }
Пример #7
0
        public void TestUserShow()
        {
            //users/show
            var result = oauthAPI.Call(HttpMethod.GET, "http://api.t.163.com/users/show.json", "screen_name=senlinzhimei");

            Assert.IsNotNull(JSON.JsonDecode(result));
        }
Пример #8
0
        public void TestUserShow()
        {
            //users/show
            var result = oauthAPI.Call(HttpMethod.GET, "http://api.t.sina.com.cn/users/show.json", "user_id=1771615175");

            Assert.IsNotNull(JSON.JsonDecode(result));
        }
Пример #9
0
        public void TestPublicTimeline()
        {
            //statuses/public_timeline
            var result = oauthAPI.Call(HttpMethod.GET, "http://api.t.sina.com.cn/statuses/public_timeline.json", "count=50");

            Assert.IsNotNull(JSON.JsonDecode(result));
        }