我正在将 Twitter 集成到 iOS 应用程序中。功能是我必须在过去 24 小时内获取所有标记为收藏的推文。我正在使用“STTwitterAPI”库来获取推文。
Here is my request:-
`STTwitterAPI *twitter = [STTwitterAPI twitterAPIWithOAuthConsumerKey:@"ConsumerKey" consumerSecret:@"consumerSecret" oauthToken:@"oauthToken" oauthTokenSecret:@"oauthTokenSecret"];
`
`[twitter getFavoritesListWithUserID:nil screenName:nil count:nil sinceID:nil maxID:nil includeEntities:nil successBlock:^(NSArray *statuses){
NSLog(@"%@",statuses);
}
`
So thats how i am requesting for favourites tweets.
The response coming is that:-
`
contributors = "<null>";
coordinates = "<null>";
"created_at" = "Mon May 11 06:20:03 +0000 2015";
entities = {
hashtags = (
);
symbols = (
);
urls = (
);
"user_mentions" = (
);
};
"favorite_count" = 1;
favorited = 1;
geo = "<null>";
id = xxxxxxxxxxxxxxxxxxxxx;
"id_str" = xxxxxxxxxxxxxxxxxxxxx;
"in_reply_to_screen_name" = "<null>";
"in_reply_to_status_id" = "<null>";
"in_reply_to_status_id_str" = "<null>";
"in_reply_to_user_id" = "<null>";
"in_reply_to_user_id_str" = "<null>";
lang = en;
place = "<null>";
"retweet_count" = 0;
retweeted = 0;
source = "<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>";
text = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
truncated = 0;
user = {
"contributors_enabled" = 0;
"created_at" = "Mon Apr 13 12:15:45 +0000 2015";
"default_profile" = 1;
"default_profile_image" = 1;
description = "";
entities = {
description = {
urls = (
);
};
};
"favourites_count" = 56;
"follow_request_sent" = 0;
"followers_count" = 0;
following = 0;
"friends_count" = 2;
"geo_enabled" = 0;
id = xxxxxxxxxxxxxxxxxxxxx;
"id_str" = xxxxxxxxxxxxxxxxxxxxx;
"is_translation_enabled" = 0;
"is_translator" = 0;
lang = en;
"listed_count" = 0;
location = "";
name = "xxxxxxxxxxxxxxxxxxxxx";
notifications = 0;
"profile_background_color" = C0DEED;
"profile_background_image_url" = "http://abs.twimg.com/images/themes/theme1/bg.png";
"profile_background_image_url_https" = "https://abs.twimg.com/images/themes/theme1/bg.png";
"profile_background_tile" = 0;
"profile_image_url" = "http://abs.twimg.com/sticky/default_profile_images/default_profile_3_normal.png";
"profile_image_url_https" = "https://abs.twimg.com/sticky/default_profile_images/default_profile_3_normal.png";
"profile_link_color" = 0084B4;
"profile_sidebar_border_color" = C0DEED;
"profile_sidebar_fill_color" = DDEEF6;
"profile_text_color" = 333333;
"profile_use_background_image" = 1;
protected = 0;
"screen_name" = "xxxxxxxxxxxxxxxxxxxxx";
"statuses_count" = 11;
"time_zone" = "<null>";
url = "<null>";
"utc_offset" = "<null>";
verified = 0;
};
`
I am getting all the favorite marked tweets but i am getting their created date only. Is there ant way so that i can also find their favorite marked time and date too????
假设我在 3 个月前创建了一条推文。现在我在 30 分钟前将他标记为最喜欢的。所以我需要的时间是当前时间之前的 30 分钟,而不是 3 个月前的时间。有什么建议吗???
Please Reply Soon....
Thanks...