natesymer/FHSTwitterEngine

Twitter User Info

ryansoy opened this issue · 4 comments

Hi, how to get data user info after login success? anyone know this please help me. Thanks.

@ryansoy you can get some information with - lookupUsers:areIDs:

id info = [[FHSTwitterEngine sharedEngine] lookupUsers:@[@"dkhamsing"] areIDs:NO];
NSLog(@"%@", info);
2015-11-02 07:29:25.130 FHSTwitterEngine[17419:3785419] (
        {
        "contributors_enabled" = 0;
        "created_at" = "Fri Sep 08 03:50:06 +0000 2006";
        "default_profile" = 1;
        "default_profile_image" = 0;
        description = "Writes iOS bugs for @CirrusInsight \U263a";
        entities =         {
            description =             {
                urls =                 (
                );
            };
        };
        "favourites_count" = 20;
        "follow_request_sent" = 0;
        "followers_count" = 196;
        following = 0;
        "friends_count" = 91;
        "geo_enabled" = 1;
        "has_extended_profile" = 0;
        id = 5532;
        "id_str" = 5532;
        "is_translation_enabled" = 0;
        "is_translator" = 0;
        lang = en;
        "listed_count" = 12;
        location = California;
        name = dkhamsing;
        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_banner_url" = "https://pbs.twimg.com/profile_banners/5532/1399710563";
        "profile_image_url" = "http://pbs.twimg.com/profile_images/3708185374/fbc4da6b4c61fe60373dcb8e2cbb64fa_normal.jpeg";
        "profile_image_url_https" = "https://pbs.twimg.com/profile_images/3708185374/fbc4da6b4c61fe60373dcb8e2cbb64fa_normal.jpeg";
        "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" = dkhamsing;
        status =         {
            contributors = "";
            coordinates = "";
            "created_at" = "Sat Oct 31 20:25:46 +0000 2015";
            entities =             {
                hashtags =                 (
                );
                symbols =                 (
                );
                urls =                 (
                );
                "user_mentions" =                 (
                                        {
                        id = 17641648;
                        "id_str" = 17641648;
                        indices =                         (
                            0,
                            7
                        );
                        name = "Caleb Davenport";
                        "screen_name" = calebd;
                    }
                );
            };
            "favorite_count" = 0;
            favorited = 0;
            geo = "";
            id = 660553271178715136;
            "id_str" = 660553271178715136;
            "in_reply_to_screen_name" = calebd;
            "in_reply_to_status_id" = 660550200533078016;
            "in_reply_to_status_id_str" = 660550200533078016;
            "in_reply_to_user_id" = 17641648;
            "in_reply_to_user_id_str" = 17641648;
            lang = en;
            place = "";
            "retweet_count" = 0;
            retweeted = 0;
            source = "<a href=\"http://tapbots.com/tweetbot\" rel=\"nofollow\">Tweetbot for i\U039fS</a>";
            text = "@calebd wow harsh \Ud83d\Ude01";
            truncated = 0;
        };
        "statuses_count" = 1391;
        "time_zone" = "Pacific Time (US & Canada)";
        url = "";
        "utc_offset" = "-28800";
        verified = 0;
    }
)

Yes thanks for answer. By the way about info above if i want get info user: first name / last name , gender , birthday, secret key. how to pass parameter to get it?

The above is all the information currently available from Twitter (cannot get gender, birthday etc)

Ok thanks.