From 43530811c5a2aeb65eb4f27b0bfabcaba5e6eb27 Mon Sep 17 00:00:00 2001 From: rabuzarus Date: Fri, 10 Feb 2017 17:14:07 +0100 Subject: [PATCH] Add missing friendica specific api calls --- Friendica-API.md | 99 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 97 insertions(+), 2 deletions(-) diff --git a/Friendica-API.md b/Friendica-API.md index 822fd3d..59034fb 100644 --- a/Friendica-API.md +++ b/Friendica-API.md @@ -127,16 +127,111 @@ Favorites aren't displayed to other users, so "user_id" and "screen_name". So se Friendica doesn't allow showing followers of other users. +### friendica/direct_messages_search +Search for direct_messages containing a search string through api. +#### Parameters +* searchstring: String to search for. + +### friendica/direct_messages_setseen +Update a direct_message to seen state. +#### Parameters +* id: The ID of the direct message. + +### friendica/group_create +Create the specified group with the posted array of contacts. +#### Parameters +* gid: The ID of the group. +* name: The name of the group. +* json: A json formatted array with a key 'users' which contains the cid (Contact ID). + +### friendica/group_delete +Delete the specified group of the user. +#### Parameters +* gid: The ID of the group. +* name: The name of the group. + +### friendica/group_show +Return all or a specified group of the user with the containing contacts. +#### Parameters +* gid: The ID of the group. + + +### friendica/group_update +Update the specified group with the posted array of contacts. +#### Parameters +* gid: The ID of the group. +* name: The name of the group. +* json: A json formatted array with a key 'users' which contains the cid (Contact ID). + +### friendica/notification + +Returns notifications. + +### friendica/notification/seen +Set notification as seen and returns associated item (if possible). +#### Parameters +* id: The ID of the notification (POST request with 'id' param as notification id). + ### friendica/photo +Returns data of a picture with the given resource. #### Parameters * photo_id: Resource id of a photo. -Returns data of a picture with the given resource. - ### friendica/photos/list Returns a list of all photo resources of the logged in user. +### friendica/profile/show +Return data of all the profiles a user has to the client. +#### Parameters +* profile_id: The ID of the profile. + +### friendica/remoteauth +Redirect to 'url' after dfrn auth. +#### Parameters +* c_url: url of remote contact to auth to. +* url: string, url to redirect after auth. + +### friendica/activity/like +#### Parameters +* id: The ID of the item on which the activity relates. + +### friendica/activity/dislike +#### Parameters +* id: The ID of the item on which the activity relates. + +### friendica/activity/attendyes +#### Parameters +* id: The ID of the item on which the activity relates. + +### friendica/activity/attendno +#### Parameters +* id: The ID of the item on which the activity relates. + +### friendica/activity/attendmaybe +#### Parameters +* id: The ID of the item on which the activity relates. + +### friendica/activity/unlike +#### Parameters +* id: The ID of the item on which the activity relates. + +### friendica/activity/undislike +#### Parameters +* id: The ID of the item on which the activity relates. + +### friendica/activity/unattendyes +#### Parameters +* id: The ID of the item on which the activity relates. + +### friendica/activity/unattendno +#### Parameters +* id: The ID of the item on which the activity relates. + +### friendica/activity/unattendmaybe +#### Parameters +* id: The ID of the item on which the activity relates. + ### friends/ids #### Parameters * stringify_ids: Should the id numbers be sent as text (true) or number (false)? (default: false)