GetPressReleaseCategoryList
Description
Returns array of Press Releases categories filtered by input parameters. When any of the parameters is missed, then 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). |
Sample URL
https://www.domain.com/feed/PressRelease.svc/GetPressReleaseCategoryList?apiKey=c34993dcba1942418d97656f3ed00979
Sample Request
var data = {
apiKey: 'c34993dcba1942418d97656f3ed00979'
};
$.ajax({
type: "GET",
url: "http://www.domain.com/feed/PressRelease.svc/GetPressReleaseCategoryList",
data: data,
dataType: "json",
success: OnLoadPressReleaseCategoryListSuccess,
error: OnLoadError
});
Sample Response
{
"GetPressReleaseCategoryListResult": [{
"CategoryName": "Press Releases",
"IsBuiltin": true,
"LanguageId": 1,
"PressReleaseCategoryId": 1,
"RevisionNumber": 32875,
"WorkflowId": "1cb807d2-208f-4bc3-9133-6a9ad45ac3b0"
},
{
"CategoryName": "temp",
"IsBuiltin": false,
"LanguageId": 1,
"PressReleaseCategoryId": 4,
"RevisionNumber": 49885,
"WorkflowId": "607a2e39-dcbe-417e-8500-618ccdd4a586"
},
{
"CategoryName": "Test Category English",
"IsBuiltin": false,
"LanguageId": 1,
"PressReleaseCategoryId": 6,
"RevisionNumber": 64175,
"WorkflowId": "1af0f952-5287-40a8-a11a-fd693ee7a486"
}
]
}