User offline. Last seen 34 weeks 5 days ago. Offline
Joined: 08/11/2011

I have used the php example on this site to loop through some content that I want analyzed.
I have read the instructions on how to add SocialTags to my output, but when it is printed out it just says
Found element of type SocialTag with name repeated 0 times
 
content = "Microsoft has made several bids to purchase Yahoo!";
$contentType = "text/txt";
// simple text - try also text/html $outputFormat = "text/simple";
// simple output format - try also xml/rdf and text/microformats $restURL = "http://api.opencalais.com/enlighten/rest/"; $paramsXML = "<c:params xmlns:c=\"http://s.opencalais.com/1/pred/\" " . "xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"> " . "<c:processingDirectives c:contentType=\"".$contentType."\" " . "c:outputFormat=\"".$outputFormat."\"". "></c:processingDirectives> " . "<c:userDirectives c:allowDistribution=\"false\" " . "c:allowSearch=\"false\" c:externalID=\" \" " . "c:submitter=\"Calais REST Sample\"></c:userDirectives> " . "<c:externalMetadata><c:Caller>Calais REST Sample</c:Caller>" . "</c:externalMetadata></c:params>";

Trackback URL for this post:

http://www.opencalais.com/trackback/112806

Login or Register to post a comment.