Follows API

The follows API supports listing the sections an author is following, follow and unfollow sections as well as listing authors that are following to sections.

List sections followed by author

Fetches the information of sections followed by a author.

GET /api/1.3/follows/<author_id>/section

Parameters

No parameters needed for this action.

Response

The response is an array of the sections followed by the author.

[
    {
        "id": 100,
        "title": "My section",
        "url": "my-section",
        "full_url": "my-section",
        "status": 1,
        "meta_title": null,
        "page_settings": {
            "hide_from_entry_editor": false,
            "allow_community_posts": false,
            "open_in_new_tab": false
        },
        "about_html": "",
        "tags": ["foo", "bar"],
        "url_header_image": "",
        "site_id": 9,
        "created_ts": 1507918417,
        "order": 3,
        "parent_id": 0,
        "type": 2,
        "extras": {},
        "header_image_id": null
    }
]

Follow a section

Makes an author to follow a section.

PUT /api/1.3/follows/<author_id>/section/<section_id>

Parameters and Response

The same specification from List sections followed by author applies here.

Unfollow a section

Makes an author to unfollow a section.

DELETE /api/1.3/follows/<author_id>/section/<section_id>

Parameters and Response

The same specification from List sections followed by author applies here.

Get section followers

Fetches the information of authors that are following a section.

GET /api/1.3/follows/sections/<section_id>

Parameters

No parameters needed for this action.

Response

The same specification from List authors applies here.