X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=doc%2Fapi.md;h=f58419417b5bb40514cf17eaef341813cbc60b0a;hb=736bcae3e879b867a74755a4a1d24cc72b113ff7;hp=76b3f3dc809d0e357c4b18bc76c67e21ef812ec7;hpb=c4c0d09744ccb2c9600709ccb6e64c8d6be2fd9a;p=friendica.git diff --git a/doc/api.md b/doc/api.md index 76b3f3dc80..f58419417b 100644 --- a/doc/api.md +++ b/doc/api.md @@ -379,6 +379,18 @@ Friendica doesn't allow showing the friends of other users. * media: image data +#### Return values + +Object of: + +* media_id: a media identifier (integer) +* media_id_string: a media identifier (string) +* size: size in byte +* image.w: image width +* image.h: image height +* image.image_type: image mime type +* image.friendica_preview_url: image preview url + --- ### oauth/request_token (*) @@ -433,6 +445,7 @@ Friendica doesn't allow showing the friends of other users. #### Parameters * include_entities: "true" shows entities for pictures and links (Default: false) +* count: how many items should be shown (Default: 20) --- @@ -633,6 +646,76 @@ Friendica doesn't allow showing the friends of other users. * trim_user * contributor_details +--- + +### Return values for statuses/* api calls + +Returned status object is conform to GNU Social/Twitter api. + +Friendica adds some addictional fields: + +- owner: a user object, it's the owner of the item. +- private: boolean, true if the item is marked as private +- activities: map with activities related to the item. Every activity is a list of user objects. +- comments: comment numbers + +This properties are prefixed with "friendica_" in JSON responses and namespaced under "http://friendi.ca/schema/api/1/" in XML responses + +JSON: + +```json +[ + { + // ... + 'friendica_owner' : { + // user object + }, + 'friendica_private' : true, + 'friendica_activities': { + 'like': [ + { + // user object + }, + // ... + ], + 'dislike': [], + 'attendyes': [], + 'attendno': [], + 'attendmaybe': [] + }, + 'friendica_comments': 12 + }, + // ... +] +``` + +XML: + +```xml + + + + + true + + + + + + + + + + + + + 21 + + + +``` + + --- ### statusnet/config (*) @@ -676,6 +759,7 @@ Friendica doesn't allow showing followers of other users. * count: alias for the rpp parameter * since_id: returns statuses with ids greater than the given id * max_id: returns statuses with ids lower or equal to the given id +* exclude_replies: don't show replies (default: false) #### Unsupported parameters @@ -993,7 +1077,7 @@ possibile scale value are: * 1: image with or height at <= 640 * 2: image with or height at <= 320 * 3: thumbnail 160x160 -* 4: Profile image at 175x175 +* 4: Profile image at 300x300 * 5: Profile image at 80x80 * 6: Profile image at 48x48