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分前に彼をお気に入りにマークしました. したがって、私が必要とする時間は、3 か月前の時間ではなく、現在の時間の 30 分前です。何か提案はありますか???
Please Reply Soon....
Thanks...