8111ede2e5
- Use filter_input instead of manual type casting
22 KiB
22 KiB
Twitter API
Overview
Friendica provides the following endpoints defined in the official Twitter API reference.
Authentication is the same as described in Using the APIs.
Entities
These endpoints use the Friendica API entities.
Different behaviour
screen_name
: The nick name in Friendica is only unique in each network but not for all networks. The users are searched in the following priority: Friendica, StatusNet/GNU Social, Diaspora, pump.io, Twitter. If no contact was found by this way, then the first contact is taken.include_entities
: Default is "false". If set to "true" then the plain text is formatted so that links are having descriptions.
Friendica-specific return values
cid
: Contact id of the user (important for "contact_allow" and "contact_deny")network
: network of the user
Unsupported parameters
cursor
trim_user
contributor_details
place_id
display_coordinates
include_rts
: To-Doinclude_my_retweet
: Retweets in Friendica are implemented in a different way
Implemented endpoints
-
- Unsupported parameters:
x_auth_password
x_auth_username
x_auth_mode
- Unsupported parameters:
-
- Unsupported parameter:
x_auth_access_type
- Unsupported parameter:
-
GET api/account/verify_credentials
- Unsupported parameter:
include_email
- Unsupported parameter:
-
POST api/account/update_profile
- Unsupported parameters:
url
location
profile_link_color
include_entities
skip_status
- Unsupported parameters:
-
POST api/account/update_profile_image
- Additional parameter:
profile_id
(optional): Numerical id of the profile for which the image should be used, default is changing the default profile.
- Additional parameter:
-
- Unsupported parameter:
display_coordinates
- Unsupported parameter:
-
- Additional return value:
image.friendica_preview_url
: image preview url
- Additional return value:
-
- Unsupported parameters:
page
count
include_entities
- Unsupported parameters:
-
- Unsupported parameters:
screen_name
include_entities
- Unsupported parameters:
-
- Unsupported parameters:
geocode
lang
locale
result_type
until
include_entities
- Unsupported parameters:
-
GET api/statuses/home_timeline
- Alias:
GET api/statuses/friends_timeline
- Alias:
-
GET api/statuses/followers (deprecated)
- Alias:
GET api/statuses/friends
- Alias:
-
GET api/favorites (deprecated)
- Unsupported parameters:
user_id
: Favorites aren't returned for other users than selfscreen_name
: Favorites aren't returned for other users than self
- Unsupported parameters:
-
- Unsupported parameters:
slug
owner_screen_name
owner_id
include_entities
- Unsupported parameters:
-
- Unsupported parameters:
screen_name
count
- Unsupported parameters:
-
- Unsupported parameters:
slug
name
mode
description
owner_screen_name
owner_id
- Unsupported parameters:
-
- Unsupported parameters:
mode
description
- Unsupported parameters:
-
- Unsupported parameters:
owner_screen_name
owner_id
slug
- Unsupported parameters:
-
- Unsupported parameters
stringify_ids
- Unsupported parameters
-
- GET api/followers/ids
- GET api/followers/list
- GET api/friends/ids
- GET api/friends/list
- Additional parameters:
since_id
: You can use thenext_cursor
value to load the next page.max_id
: You can use the inverse of theprevious_cursor
value to load the previous page.
- Unsupported parameter:
skip_status
: No status is returned even if it isn't set to true.
- Caveats:
cursor
trumpssince_id
trumpsmax_id
if any combination is provided.user_id
must be the ID of a contact associated with a local user account.screen_name
must be associated with a local user account.screen_name
trumpsuser_id
if both are provided (undocumented Twitter behavior).- Will succeed but return an empty array for users hiding their contact lists.
- Additional parameters: