示例#1
0
 // + "?type=" + type + "&language=" + language
 public List<EmotionList> GetEmotions(string type, string format, string apiToken, string apiTokenSecret)
 {
     SinaApiService myApi = new SinaApiService();
     string myResult = myApi.GetEmotions(type, "cnname", format, consumerKey, consumerKeySecret, apiToken, apiTokenSecret);
     XDocument doc = XDocument.Parse(myResult);
     return EmotionList.Parse(doc.Root);
 }
示例#2
0
 public List<CommentTimelineList> GetCommentTimeline(string format, string apiToken, string apiTokenSecret)
 {
     SinaApiService myApi = new SinaApiService();
     string myResult = myApi.comments_timeline(format, consumerKey, consumerKeySecret, apiToken, apiTokenSecret);
     XDocument doc = XDocument.Parse(myResult);
     return CommentTimelineList.Parse(doc.Root);
 }
示例#3
0
 public List<DirectMessageList> GetDirectMessages(string format, string apiToken, string apiTokenSecret)
 {
     SinaApiService myApi = new SinaApiService();
     string myResult = myApi.direct_messages(format, consumerKey, consumerKeySecret, apiToken, apiTokenSecret);
     XDocument doc = XDocument.Parse(myResult);
     return DirectMessageList.Parse(doc.Root);
 }
示例#4
0
 public FavoriteList DeleteFavorite(string statusid, string format, string apiToken, string apiTokenSecret)
 {
     SinaApiService myApi = new SinaApiService();
     string myResult = myApi.delete_favorite(statusid, format, consumerKey, consumerKeySecret, apiToken, apiTokenSecret);
     XDocument doc = XDocument.Parse(myResult);
     return FavoriteList.Parse(doc.Root, 1);
 }
示例#5
0
 public string CreateFriendships(string userid, string format, string apiToken, string apiTokenSecret)
 {
     SinaApiService myApi = new SinaApiService();
     string myResult = myApi.create_friendships(userid, format, consumerKey, consumerKeySecret, apiToken, apiTokenSecret);
     return myResult;
 }
示例#6
0
 public UnreadMessageList GetUnreaderMessage(string sinceid, string format, string apiToken, string apiTokenSecret)
 {
     SinaApiService myApi = new SinaApiService();
     string myResult = myApi.unread_message(sinceid, format, consumerKey, consumerKeySecret, apiToken, apiTokenSecret);
     XDocument doc = XDocument.Parse(myResult);
     return UnreadMessageList.Parse(doc.Root);
 }
示例#7
0
        public UserList VerifyCredentials(string format, string apiToken, string apiTokenSecret)
        {
            SinaApiService myApi = new SinaApiService();
            string myResult = myApi.VerifyCredentials(format, consumerKey, consumerKeySecret, apiToken, apiTokenSecret);

            XDocument doc = XDocument.Parse(myResult);
            //return UserList.Parse(doc);
            return UserList.Parse(doc.Root);
        }
示例#8
0
 public string Status_ReplyComment(string twitterid, string commentcontent,string commentid, string format, string apiToken, string apiTokenSecret)
 {
     SinaApiService myApi = new SinaApiService();
     string myResult = myApi.status_replycomment(twitterid, commentcontent, commentid, format, consumerKey, consumerKeySecret, apiToken, apiTokenSecret);
     return myResult;
 }
示例#9
0
 //public CommentTimelineList UpdateCommentByID(string statusid, string format, string status, string apiToken, string apiTokenSecret)
 //{
 //    SinaApiService myApi = new SinaApiService();
 //    string myResult = myApi.status_comment(statusid, status, format, consumerKey, consumerKeySecret, apiToken, apiTokenSecret);
 //    XDocument doc = XDocument.Parse(myResult);
 //    return CommentTimelineList.Parse(doc.Root);
 //}
 public string UpdateCommentByID(string statusid, string format, string status, string apiToken, string apiTokenSecret)
 {
     SinaApiService myApi = new SinaApiService();
     string myResult = myApi.status_comment(statusid, status, format, consumerKey, consumerKeySecret, apiToken, apiTokenSecret);
     return myResult;
 }
示例#10
0
 public string ResetCount(string type, string format, string apiToken, string apiTokenSecret)
 {
     SinaApiService myApi = new SinaApiService();
     string myResult = myApi.reset_count(type, format, consumerKey, consumerKeySecret, apiToken, apiTokenSecret);
     return myResult;
 }
示例#11
0
 public string Status_Delete(string twitterid, string format, string apiToken, string apiTokenSecret)
 {
     SinaApiService myApi = new SinaApiService();
     string myResult = myApi.status_destroy(twitterid, format, consumerKey, consumerKeySecret, apiToken, apiTokenSecret);
     return myResult;
 }
示例#12
0
        public string RepostStatus(string statusid, string status, int isComment, string format, string apiToken, string apiTokenSecret)
        {
            SinaApiService myApi = new SinaApiService();

            string myResult = myApi.status_repost(statusid, status, isComment, format, consumerKey, consumerKeySecret, apiToken, apiTokenSecret);
            return myResult;
        }
示例#13
0
 public List<FriendTimelineList> GetUserTimeline(string userid, string format, string apiToken, string apiTokenSecret)
 {
     SinaApiService myApi = new SinaApiService();
     string myResult = myApi.user_timeline(userid, format, consumerKey, consumerKeySecret, apiToken, apiTokenSecret);
     XDocument doc = XDocument.Parse(myResult);
     return FriendTimelineList.Parse(doc.Root);
 }
示例#14
0
 public UserList GetUserProfile(string userid, string format, string apiToken, string apiTokenSecret)
 {
     SinaApiService myApi = new SinaApiService();
     string myResult = myApi.GetUserProfile(userid, format, consumerKey, consumerKeySecret, apiToken, apiTokenSecret);
     XDocument doc = XDocument.Parse(myResult);
     return UserList.Parse(doc.Root);
 }
示例#15
0
 public List<FavoriteList> GetFavorites(string format, string apiToken, string apiTokenSecret)
 {
     SinaApiService myApi = new SinaApiService();
     string myResult = myApi.GetFavorites(format, consumerKey, consumerKeySecret, apiToken, apiTokenSecret);
     XDocument doc = XDocument.Parse(myResult);
     return FavoriteList.Parse(doc.Root);
 }
示例#16
0
 public string UpdateStatus(string format, string status, string apiToken, string apiTokenSecret)
 {
     SinaApiService myApi = new SinaApiService();
     string myResult = myApi.statuses_update(format, status, consumerKey, consumerKeySecret, apiToken, apiTokenSecret);
     return myResult;
 }
示例#17
0
 public List<FollowerList> GetFollower(string userid,int count, string format, string apiToken, string apiTokenSecret)
 {
     SinaApiService myApi = new SinaApiService();
     string myResult = myApi.get_followers(userid,count, format, consumerKey, consumerKeySecret, apiToken, apiTokenSecret);
     XDocument doc = XDocument.Parse(myResult);
     return FollowerList.Parse(doc.Root);
 }
示例#18
0
        public List<TokenKeyCollection> GetToken(string userID, string pwd)
        {
            SinaApiService myApi = new SinaApiService();
            List<string> strKey;
            strKey = myApi.GetToken(userID, pwd);
            List<TokenKeyCollection> myResults = new List<TokenKeyCollection>();
            myResults.Add(new TokenKeyCollection(strKey[0].ToString(), strKey[1].ToString()));

            return myResults;
        }