Archive of initial ActivityPub plugin doc for GNU social
This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Diogo Cordeiro 0d4712ccf6 Update Notice Entity
TODO: Elaborate on Attachment and Tags
2018-04-29 13:12:29 +01:00
README.md Update Notice Entity 2018-04-29 13:12:29 +01:00

README.md

ActivityPub Plugin for GNU Social Doc

Contents

Selecting ranges

For most GET operations that return arrays, the query parameters max_id and since_id can be used to specify the range of IDs to return. API methods that return collections of items can return a Link header containing URLs for the next and prev pages. See the Link header RFC for more information.

Errors

If the request you make doesn't go through, the plugin will usually respond with an Error.


Methods

Profiles

Fetching an Actor's profile:

GET :username/profile.json

Query parameters:

Field Description Optional
pretty If set it generates a formated output yes

Returns a Profile.

Getting an Actor's Liked Collection:

GET :username/liked.json

Query parameters:

Field Description Optional
pretty If set it generates a formated output yes
since Starts from nth entry yes
limit Maximum number of followers to get (Default 40, Max 80) yes

Returns an array of Notices.

Entities

Note: Some attributes in the entity payload can have null value and are marked as nullable on the tables below. Attributes that are not nullable are guaranteed to return a valid value.

Profile

Attribute Description Nullable
@context Standard compliance no
id The ID of the Actor no
type Person no
nickname The username of the account no
inbox URL to Actor's inbox endpoint no
outbox URL to Actor's outbox endpoint no
acct Equals username for local users, includes @domain for remote ones no
display_name The Actor's display name no
followers URL to Actor's followers endpoint no
followers URL to Actor's following endpoint no
liked URL to Actor's Liked collection endpoint no
summary Actor's biography no
url URL of the Actor's profile page (can be remote) no
avatar Image object with the Actor's avatar no

Notice

Attribute Description Nullable
id Notice's URL no
type Notice's Type no
actor Notice owner's URL no
published DateTime of notice creation no
to To no
cc CC no
content Notice's Content in plain text no
rendered Notice's Content in HTML no
url Notice's URL no
reply_to ID of the notice this replies yes
is_local Equals 1 for local notices, 0 otherwise no
conversation Notice conversation id no
attachment Attachment object no
tag Tag array no

Image

Attribute Description Nullable
type Image no
width Image's width no
height Image's height no
url Image URL no