Created by: Daniel Nikolov on 14-09-2012 10:54:51 AM Hello all, Does anyone know how to add "favorite"/"like"/"share"/"comment" for existing post ? I tried searching through the rest api but there is no information about this. Also using hook portlets is not an option because it's too risky. We are trying to implement it using custom html design and javascript code. but I could not find much information how to do it. Can anyone help ?
Subject: RE: Modifying existing post - add "favorite", "watch", "like" programmatic Replied by: Amanda Whaley on 14-09-2012 11:24:10 AM Hi Daniel -
You can create a favorite relationship with a post by using the following REST api:
Subject: RE: Modifying existing post - add "favorite", "watch", "like" programmatic Replied by: Daniel Nikolov on 16-09-2012 02:44:29 PM Thanks a lot, Amanda.
Subject: RE: Modifying existing post - add "favorite", "watch", "like" programmatic Replied by: Daniel Nikolov on 17-09-2012 01:37:33 AM Hmm, I tried the rest call with Firefox REST client and it raises the following error:
<ns2:response> <statusCode>500</statusCode> <startIndex>0</startIndex> <itemsPerPage>0</itemsPerPage> <totalResults>0</totalResults> <filtered>false</filtered> <sorted>false</sorted> <serverMessages> <code>QUAD-500</code> <description>Internal server error</description> <message>Error: could not match input</message> </serverMessages> </ns2:response>
I'm using it with Basic Authentication and Content-Type: application/json. My input is:
Subject: Re: New Message from Daniel Nikolov in WebEx Social Developer - API/SDK: RE Replied by: Amanda Whaley on 17-09-2012 11:20:00 AM Can you please post the complete raw request?
On Sep 17, 2012, at 12:37 AM, Cisco Developer Community Forums wrote:
Daniel Nikolov has created a new message in the forum "API/SDK":
-------------------------------------------------------------- Hmm, I tried the rest call with Firefox REST client and it raises the following error:
<ns2:response> <statusCode>500</statusCode> <startIndex>0</startIndex> <itemsPerPage>0</itemsPerPage> <totalResults>0</totalResults> <filtered>false</filtered> <sorted>false</sorted> <serverMessages> <code>QUAD-500</code> <description>Internal server error</description> <message>Error: could not match input</message> </serverMessages> </ns2:response>
I'm using it with Basic Authentication and Content-Type: application/json. My input is:
Subject: RE: Modifying existing post - add "favorite", "watch", "like" programmatic Replied by: Daniel Nikolov on 18-09-2012 01:48:43 AM Hi Amanda, My request is:
Request headers: Http Basic Authentication with Base64 encoded username:password Content-Type: application/json Data: { destination: { "id": 500002, "resource": "http://quad.cisco.com/schema/1.0/post" } } and II got the following response: <ns2:response> <statusCode>500</statusCode> <startIndex>0</startIndex> <itemsPerPage>0</itemsPerPage> <totalResults>0</totalResults> <filtered>false</filtered> <sorted>false</sorted> <serverMessages> <code>QUAD-500</code> <description>Internal server error</description> <message>Error: could not match input</message> </serverMessages> </ns2:response> Can you help with this ?
Subject: RE: Modifying existing post - add "favorite", "watch", "like" programmatic Replied by: Amanda Whaley on 26-09-2012 01:22:43 PM Daniel - Are you still having trouble with this or did the answer to the login question help resolve this one also? Thanks - Amanda Whaley
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: