]> git.mxchange.org Git - friendica.git/commitdiff
Small change in the API (some new Twitter fields - but without function)
authorMichael Vogel <icarus@dabo.de>
Tue, 2 Jun 2015 14:19:40 +0000 (16:19 +0200)
committerMichael Vogel <icarus@dabo.de>
Tue, 2 Jun 2015 14:19:40 +0000 (16:19 +0200)
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