Returns the channel lineup offered by a television service, the channels that broadcast on the service anytime during the next two weeks.
This request returns a large amount of data. To speed data transmission, request a compressed response by including Accept-Encoding: gzip,deflate in the HTTP header.
This request requires the service ID of the television service. You can get service IDs from responses to a GetServices request.
POST /v9/listingsservice.asmx HTTP/1.1
Host: api.rovicorp.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Header>
<AuthHeader xmlns="http://api.rovicorp.com/v9/common/types">
<UserName>string</UserName>
<Password>string</Password>
</AuthHeader>
</soap12:Header>
<soap12:Body>
<GetServiceDetails xmlns="http://api.rovicorp.com/v9/listings">
<request>
<Locale>string</Locale>
<ServiceId>int</ServiceId>
<StartDate>dateTime</StartDate>
<Duration>int</Duration>
<IncludeChannelImages>boolean</IncludeChannelImages>
<ImageFilter>
<ImageUrl>string</ImageUrl>
<ImageUseType>Logo or HeroImage or Thumbnail</ImageUseType>
<ImageId>int</ImageId>
<ImageTitle>string</ImageTitle>
<ImageCaption>string</ImageCaption>
<ObjectId>string</ObjectId>
<ObjectType>Program or Credit or Source</ObjectType>
<ObjectName>string</ObjectName>
<Relevancy>boolean</Relevancy>
<ImageCredit>string</ImageCredit>
<ImageCreditDisplay>boolean</ImageCreditDisplay>
<ImageCastWeight>float</ImageCastWeight>
<ImageZoomLevel>1 or 2 or 3 or 4 or 5</ImageZoomLevel>
<ImageHeadcount>int</ImageHeadcount>
<ImageType>string</ImageType>
<ImageFormat>jpg or png or gif or bmp</ImageFormat>
<ImageHorizontalResolution>int</ImageHorizontalResolution>
<ImageVerticalResolution>int</ImageVerticalResolution>
<ImageMaintainAspectFlag>boolean</ImageMaintainAspectFlag>
<ImageExpiryDateTime>dateTime</ImageExpiryDateTime>
<LastUpdate>dateTime</LastUpdate>
<ImageFormatId>int</ImageFormatId>
<Orientation>string</Orientation>
<AspectRatio>string</AspectRatio>
<ImageOwner>string</ImageOwner>
<ParentImageId>int</ParentImageId>
<MaxImageScale>float</MaxImageScale>
</ImageFilter>
<ImageCount>int</ImageCount>
</request>
</GetServiceDetails>
</soap12:Body>
</soap12:Envelope>
Request the channel lineup for Time Warner Cable in Beverly Hills, California.
Request the channel lineup for Los Angeles area broadcast channels in Pasadena, California, along with small channel logos.
Request the channel lineup for Shaw Cable in Moose Jaw, Saskatchewan, and the UTC offsets for the next six months.
Name | Required | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Locale | Yes | String | Language and country code of the television service. This is a case-insensitive combination of the ISO 639 language code, a hyphen character, and the ISO 3166 country code, as described in RFC 1766. Valid locales include:
[1] Includes Wales, Scotland, and Northern Ireland. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ServiceId | Yes | Integer | Database ID of the television service. To get the service ID for the television service, request the list of services in the area with GetServices. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ClientBatchId | No | String | A trace code to be returned in the response header so you can track a batch of requests. The code can be up to 255 characters. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Duration | No | Nullable Integer | Number of minutes that returned UTC offset information should cover, from 1 to 527040 (1 year). Default is 20160 (14 days).
You use UTC offset information to calculate local program times (program times returned are UTC time). Because UTC offsets change with daylight saving time, the response gives the start and end points of the UTC offsets that apply during the period covered by Duration and StartDate. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ImageCount | No | Nullable Integer | If IncludeChannelImages is set to true, ImageCount specifies the maximum number of channel logos returned. The default is 1. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ImageFilter | No | Image | If IncludeChannelImages is set to true, ImageFilter specifies properties of the channel logos. Do one of the following:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
IncludeChannelImages | No | Nullable Boolean | Whether to include channel logos in the response: true or false. Default is false.
Note: Some channels do not have logos. For those channels, display call letters instead. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
StartDate | No | Nullable DateTime | Starting point of the returned UTC offset information. Default is the time of the request.
You use UTC offset information to calculate local program times (program times are UTC time). Because UTC offsets change with daylight saving time, the response gives the start and end points of the UTC offsets that apply during the period covered by Duration and StartDate. |
Response | Type | Description |
---|---|---|
Build | String | Software build version of the API. |
ClientBatchId | String | The batch ID you supplied in the request. |
EndTimestamp | DateTime | Time the server finished processing the request. |
Errors | Error [ ] | Processing errors or warnings. |
RequestId | String GUID | A generated value that identifies the request and response. |
Status | Status | Processing status, indicating whether the request was successfully processed. |
TimeStamp | DateTime | Time the server started processing the request. |
Name | Type | Description |
---|---|---|
ChannelLineup | ChannelLineup | Information about the television service and the channels provided by the service. |
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<GetServiceDetailsResponse xmlns="http://api.rovicorp.com/v9/listings">
<GetServiceDetailsResult>
<ChannelLineup>
<Channels>
<ListingsChannel xsi:nil="true" />
<ListingsChannel xsi:nil="true" />
</Channels>
</ChannelLineup>
</GetServiceDetailsResult>
</GetServiceDetailsResponse>
</soap12:Body>
</soap12:Envelope>
Code | Name | Description |
---|---|---|
1001 | Core_MandatoryFieldMissing | A mandatory parameter is not specified. |
10603 | LookupService_InvalidLocale | The locale specified in the request is invalid. |