<?php
$url = 'http://summarity.com/apiV1';
$data = 'summarity_api_key=yourAPIkey';
$data .= '&text='.urlencode('Just some text for testing');
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo(json_decode($response));
?>
The service doesn't seem to work. Your example just returns the text your sending in....
ReplyDeleteDid you try using a larger amount of text?
ReplyDelete