Skip to content

copiadigital/hardmanco_widgets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hardman & Co

Hardman & Co Research Widgets

To pull your company's research pieces onto your website automatically there are two options:

  • JSON endpoint
  • Code snippet

JSON Endpoint

Every Hardman client has a unique ID and can access all of their research reports via a URL with the ID and the number of reports to display as part of the URL query.

https://hardmanandco.com/wp-json/research/v1/list/[clientID]/?monthly=0&per_page=[numberOfArticles]

Example: https://hardmanandco.com/wp-json/research/v1/list/2691/?monthly=0&per_page=3

This will return a JSON string for each article in the following format:

{
  "title": "The title of the report",
  "date": "DD MMM YYYY",
  "headline": "A longer introduction to the report",
  "permalink": "The direct URL of the report"
}

Showing monthly reports

The above code will hide the monthly reports by default. To show them, change the montly query parameter to 1.

Example: https://hardmanandco.com/wp-json/research/v1/list/2691/?monthly=1&per_page=3

Code Snippet

If you would prefer to use a drop-in code snippet to achieve the same thing, you can find it in the example folder.

Don't forget to put the correct client ID, provided by Hardman.

Support

If you need further support please contact Copia Digital

Copia Digital

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages