]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #1645 from annando/1506-api
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Tue, 2 Jun 2015 20:47:41 +0000 (22:47 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Tue, 2 Jun 2015 20:47:41 +0000 (22:47 +0200)
Small change in the API (some new Twitter fields - but without function)

include/api.php

index a9e0edc80836f00d0fcbf4ed762ea6f794996ce2..d1132635d32ca8572882ef91445d697bc1cc66e2 100644 (file)
                                        'screen_name' => (($r[0]['nick']) ? $r[0]['nick'] : $r[0]['name']),
                                        'location' => NULL,
                                        'description' => NULL,
-                                       'profile_image_url' => $r[0]["avatar"],
-                                       'profile_image_url_https' => $r[0]["avatar"],
                                        'url' => $r[0]["url"],
                                        'protected' => false,
                                        'followers_count' => 0,
                                        'friends_count' => 0,
+                                       'listed_count' => 0,
                                        'created_at' => api_date(0),
                                        'favourites_count' => 0,
                                        'utc_offset' => 0,
                                        'time_zone' => 'UTC',
+                                       'geo_enabled' => false,
+                                       'verified' => false,
                                        'statuses_count' => 0,
+                                       'lang' => '',
+                                       'contributors_enabled' => false,
+                                       'is_translator' => false,
+                                       'is_translation_enabled' => false,
+                                       'profile_image_url' => $r[0]["avatar"],
+                                       'profile_image_url_https' => $r[0]["avatar"],
                                        'following' => false,
-                                       'verified' => false,
+                                       'follow_request_sent' => false,
+                                       'notifications' => false,
                                        'statusnet_blocking' => false,
                                        'notifications' => false,
                                        'statusnet_profile_url' => $r[0]["url"],
                        $converted = api_convert_item($item);
 
                        $status_info = array(
+                               'created_at' => api_date($lastwall['created']),
+                               'id' => intval($lastwall['id']),
+                               'id_str' => (string) $lastwall['id'],
                                'text' => $converted["text"],
+                               'source' => (($lastwall['app']) ? $lastwall['app'] : 'web'),
                                'truncated' => false,
-                               'created_at' => api_date($lastwall['created']),
                                'in_reply_to_status_id' => $in_reply_to_status_id,
                                'in_reply_to_status_id_str' => $in_reply_to_status_id_str,
-                               'source' => (($lastwall['app']) ? $lastwall['app'] : 'web'),
-                               'id' => intval($lastwall['id']),
-                               'id_str' => (string) $lastwall['id'],
                                'in_reply_to_user_id' => $in_reply_to_user_id,
                                'in_reply_to_user_id_str' => $in_reply_to_user_id_str,
                                'in_reply_to_screen_name' => $in_reply_to_screen_name,
+                               'user' => $user_info,
                                'geo' => NULL,
+                               'coordinates' => "",
+                               'place' => "",
+                               'contributors' => "",
+                               'is_quote_status' => false,
+                               'retweet_count' => 0,
+                               'favorite_count' => 0,
                                'favorited' => $lastwall['starred'] ? true : false,
-                               'user' => $user_info,
+                               'retweeted' => false,
+                               'possibly_sensitive' => false,
+                               'lang' => "",
                                'statusnet_html'                => $converted["html"],
                                'statusnet_conversation_id'     => $lastwall['parent'],
                        );
@@ -2957,6 +2974,19 @@ function api_best_nickname(&$contacts) {
 
 
 /*
+To.Do:
+    [pagename] => api/1.1/statuses/lookup.json
+    [id] => 605138389168451584
+    [include_cards] => true
+    [cards_platform] => Android-12
+    [include_entities] => true
+    [include_my_retweet] => 1
+    [include_rts] => 1
+    [include_reply_count] => true
+    [include_descendent_reply_count] => true
+
+
+
 Not implemented by now:
 statuses/retweets_of_me
 friendships/create