Community Posts

Historypin has a Community Forum where users can discuss the content of their collections and do collaborative research together. The forum software is powered by a project called Discourse, and we have integrated with Discourse to retrieve some basic information as well as to match Discourse categories and topics to Historypin content. Each Historypin Collection has one matching Discourse sub-category (implicitly created only when a user first tries to navigate to it), which we use to organise the user's information. This API call returns the latest posts from the community forum about a given project (collection), assuming that it has already been created.

URL

http://www.historypin.org/en/api/{project_slug}/projects/get_latest_community_posts.json

Parameters

Example JSON

http://www.historypin.org/en/api/a-history-of-pubs/projects/get_latest_community_posts.json

{
    "community_url" : "https://community.historypin.org/c/collection/92/",
    "latest_community_topics": [
        {
            "id"        : 442,
            "posted"    : "said on 14 September",
            "content"   : "This is the discussion category for the project Pubs of London on Historypin ...",
            "url"       : "https://community.historypin.org/t/general-discussion/395/442",
            "topic":
            {
                "url"   : "https://community.historypin.org/t/general-discussion/395",
                "title" : "General Discussion"
            },
            "user":
            {
                "username"  : "Historypin",
                "avatar"    : "https://community.historypin.org/letter_avatar/historypin/200/5_fcf819f9b3791cb8c87edf29c8984f83.png",
                "url_user"  : "https://community.historypin.org/users/Historypin/activity"
            }
        }
]
}