contextvoice __construct(
[string
$apikey = false]
)
|
|
Default constructor
You can use the service anonymously by not specifying an API key but you will be limited to only using the getUrlReactions method, and a call rate limit of 500 calls per day.
Instantiate as $myvar = new contextvoice('[my api key]'); or $myvar = new contextvoice(); //anonymous access
Parameters:
API Tags:
Submit a single url to contextvoice for tracking
Parameters:
|
string |
$url: |
Must be a fully qualified url e.g. http://www.example.com/page.htm |
Submit a number of urls to contextvoice for tracking.
$urls can be either a comma delimited list or an array. each URL must be a fully qualified url e.g. http://www.example.com/page.htm
Parameters:
|
mixed |
$urls: |
This must be either a comma-separated list(string) or an array of urls |
Get info about a single url from contextvoice.
The url must have first been registered via the addUrl or addUrls methods.
Parameters:
|
string |
$url: |
Must be a fully qualified url e.g. http://www.example.com/page.htm |
cv_Response getUrlReactions(
string
$url, [string
$since = false], [string
$include = false], [string
$exclude = false], [bool
$filter = false], [string
$order = false], [int
$page = false], [int
$perpage = false], [bool
$threaded = false]
)
|
|
Get a set of reactions about a single url from contextvoice.
The url must have first been registered via the addUrl or addUrls methods.
Parameters:
|
string |
$url: |
Must be a fully qualified url e.g. http://www.example.com/page.htm |
|
string |
$since: |
[optional] Any php parseable date string e.g. "15 May 2009" |
|
string |
$include: |
[optional] Comma-separated list of sources e.g. "twitter,digg,friendfeed" |
|
string |
$exclude: |
[optional] Comma-separated list of sources e.g. "flickr,hackernews,slashdot" |
|
bool |
$filter: |
[optional] if true, attempts to remove "retweets" from the results. |
|
string |
$order: |
[optional] "asc" or "desc" orders the results by the date that they were added to the contextvoice indexes |
|
int |
$page: |
[optional] the page of results to return defaults to 1 |
|
int |
$perpage: |
[optional] the number of results to return per page, defaults to 25 |
|
bool |
$threaded: |
[optional] return the threaded conversation (retwitts will be treated as children of the original twitt), defaults to false |