Follow

ID125 - Favorite Comments - Tips for website set up

Ensure there some "liked favorite" comments before starting. 

We suggest you show the contact 1st name and date as a minimum but you may also want to show last name and company name. There are options to include the question as well as the answer when needed for context. We suggest a separate page to easily track views, see the CEO Juice page here.

Streaming to your website:

**Please right click on any image to enlarge**

There are two options for getting liked Survey Comments to use on an external site:

This provides the most flexibility with regards to how it’s displayed, since the web developer on the Customer’s end would query the data and do their own formatting.

The url for the json feed is : https://www.ceojuice.com/Alerts/surveyresponses/likedposts

It expects two parameters and both are required.

**CustomerNumber and AuthKey, values for both will need to be provided to each Juice Customer manually. Email us at help@ceojuice.com for yours**

They can be passed as querystring parameters:

https://www.ceojuice.com/Alerts/surveyresponses/likedposts?CustomerNumber=XXXXX&AuthKey=XXXXXXXXXXXX

Or in the http header (example below in the code samples)

Code examples:

These show how to get the data (not how to format/display it)

Javascript (using JQuery, but other js libraries are very similar)

Both examples do the same thing, just demonstrating how to pass the parameters either on the querystring or as header values:

 

C#,… Windows Forms or ASP.NET

 PHP:

<?php

$posts = file_get_contents('https://www.ceojuice.com/Alerts/surveyresponses/likedposts?CustomerNumber=XXXXX&AuthKey=XXXXXXXXXXXX');

// do something w/ $posts here....

echo $posts;

?>

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

0 Comments

Please sign in to leave a comment.
Powered by Zendesk