Blog API Methods

Get Information about a Specific Blog Comment

GET  /blog/v1/comments/:comment_guid.:ext

For a given comment, identified by its GUID, list metadata and other information.

Required Parameters How to use Description
Comment GUID Used in the request URL Unique identifier for a particular comment you want to list information about.
HubSpot OAuth Access Token access_token=X - Used in the request URL The HubSpot API key for the portal that you're making the call for.
Optional Parameters How to use Description
None None No optional parameters for this method.

Example URL requesting JSON:  https://api.hubapi.com/blog/v1/comments/b3f67484-0e81-471d-a402-d240fad6cea6.json?access_token=demooooo-oooo-oooo-oooo-oooooooooooo

Example JSON output:

        {
            "anonyEmail": "hapihp@hs.com",
            "anonyName": "hapihp comment Author",
            "anonyUrl": "http://hubspot.com",
            "approvedTimestamp": null,
            "blogGuid": "0d61e4ca-e395-4c1c-8766-afaa48bf68db",
            "blogUrl": "http://demo.hubapi.com/blog-for-testing",
            "comment": "hapihp test comment created a new one now",
            "createTimestamp": 1322620933000,
            "guid": "b3f67484-0e81-471d-a402-d240fad6cea6",
            "jsonUrl": "https://api.hubapi.com/blog/v1/comments/b3f67484-0e81-471d-a402-d240fad6cea6.json",
            "judgeIsSpam": false,
            "judgeScoredTimestamp": null,
            "notifiedModeratorsTimestamp": null,
            "notifiedNonModeratorsTimestamp": null,
            "notify": false,
            "portalId": 62515,
            "postGuid": "ae15391a-7bd9-454d-b51b-5c480a010497",
            "postTitle": "new improves Updated title",
            "postUrl": "http://demo.hubapi.com/blog-for-testing/bid/80149/",
            "referrer": "",
            "userAgent": "",
            "userEmail": "hapihp@hs.com",
            "userToken": ""
        }
    

Example URL requesting AtomPub:  https://api.hubapi.com/blog/v1/comments/b3f67484-0e81-471d-a402-d240fad6cea6.atom?access_token=demooooo-oooo-oooo-oooo-oooooooooooo

Example AtomPub Output:

        <feed xmlns="http://www.w3.org/2005/Atom">
            <id>ae15391a-7bd9-454d-b51b-5c480a010497</id>
            <title type="text">new improves Updated title</title>
            <author>
                <name>testapi@hubspot.com</name>
                <email>testapi@hubspot.com</email>
            </author>
            <entry xmlns:hs="http://www.hubspot.com/">
                <id>b3f67484-0e81-471d-a402-d240fad6cea6</id>
                <author>
                    <name>hapihp comment Author</name>
                    <email>hapihp@hs.com</email>
                    <uri>http://hubspot.com</uri>
                </author>
                <content type="text">hapihp test comment created a new one now</content>
                <published>2011-11-30T02:42:13.000Z</published>
                <hs:blogGuid>0d61e4ca-e395-4c1c-8766-afaa48bf68db</hs:blogGuid>
                <hs:postGuid>ae15391a-7bd9-454d-b51b-5c480a010497</hs:postGuid>
                <hs:userToken/>
                <hs:judgeScoredTimestamp/>
                <hs:judgeIsSpam>false</hs:judgeIsSpam>
            </entry>
        </feed>