Feed and Social Publishing (API and Plugins)

In order to post an article content to a social channel, the canonical link of that article needs to be available in the content body. CMP clients who don’t use wordpress as their CMS but rather rely on feed publishing, need to be able to publish to a feed and any social channel from the CMP within a task. We introduced an API that receives the tracking pixel and the canonical link of the article, finds out which article it points to and accordingly update the article with the canonical link.

Once the article is updated, the CMP is made aware of this change, and if there are pending social publishes dependent on the article post, it proceeds with the publishing then.


Now there are a few ways to call this API from the client’s CMS site with the necessary data.

A CMS specific plugin will call our API service with the required data whenever an article is published in the hub.


Update Canonical Link Endpoint

The following api endpoint is used to register the article url to newscred assets


GET http://js-snippets.newscred.com/customer_canonical_link


Property  Semantic  Type  Example
canonical_link* String The url encoded link to the article page “http://cmc-wp-test.newscred.com/index.php/2017/11/22/puretech-health-to-present-at-piper-jaffray-2017-healthcare-conference/
tracking_pixel_key* String This is the newscred unique id for the article. Usually found the pixel image appended with the body of the article. “YXJ0aWNsZT0xNjcxOGNiNmZlZWEyNTM2OWZmMzZlZDBmZmJiZTJkOA==”

* - Required field












Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Powered by Zendesk