GetPressReleaseListCount
Description
Returns number of Press Releases filtered by input parameters. When any parameters are missed, the default value is used.
Input Parameters
Parameter | Description |
---|---|
| To use the Q4 API, you need to have an application key. We use this to track API usage. Currently, the use of the API is allowed only with prior permission. Requests for API keys are reviewed by staff. Please get in touch with support to get the API Key. |
| Specifies the language for which press releases should be returned. The default value is 1 (English). |
| If specified, the result will be filtered by tags. Tags are pipe-delimited - 'tag1|tag2'. The default is an empty string. |
| Specifies the year for which press releases should be returned. When it is not provided, the result will not be filtered by year. |
| Specifies the range in dates of press releases that need to be returned. The default value is 0 (Past). |
| Specifies the id of the category by which press releases need to be filtered. The default value is "00000000-0000-0000-0000-000000000000". |
| When |
| When |
Sample URL
https://www.domain.com/feed/PressRelease.svc/GetPressReleaseListCount?apiKey=c34993dcba1942418d97656f3ed00979&year=201
0
Sample Request
var data = {
apiKey: 'c34993dcba1942418d97656f3ed00979',
year: 2010
};
$.ajax({
type: "GET",
url: "http://www.domain.com/feed/PressRelease.svc/GetPressReleaseListCount",
data: data,
dataType: "json",
success: OnLoadPressReleaseListCountSuccess,
error: OnLoadError
});
Sample Response
{
"GetPressReleaseListCountResult": 15
}