V9.ListingsService:GetServices

Jump to: navigation, search

GetServices

Returns a list of the television service offerings for an area. This request provides optional arguments to limit the response to a single service or to the services of a single cable or satellite operator.

Your application should start with this request to get the service ID of the television service you want.

Syntax

The following is a sample SOAP 1.2 request with placeholders. Your application development environment needs to replace the placeholders with actual values.
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>
    <GetServices xmlns="http://api.rovicorp.com/v9/listings">
      <request>
        <Locale>string</Locale>
        <StartDate>dateTime</StartDate>
        <Duration>int</Duration>
        <ServiceId>int</ServiceId>
      </request>
    </GetServices>
  </soap12:Body>
</soap12:Envelope>

Request Example 1 »

Request the television service offerings for Beverly Hills 90210.

Request Example 2 »

Request the television service offerings for Moose Jaw, Saskatchewan S6H 2X1.

Request Example 3 »

Request the Time Warner Cable offerings for New York, New York 10020.

Request Parameters

NameRequiredTypeDescription
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:
  • da-DK
Danish, Denmark
  • nl-BE
Dutch, Belgium
  • nl-NL
Dutch, Netherlands
  • en-BM
English (US), Bermuda
  • en-CA
English (US), Canada
  • en-IE
English (US), Ireland
  • en-JM
English (US), Jamaica
  • en-GB
English (UK), United Kingdom[1]
  • en-US
English (US), United States
  • fi-FI
Finnish, Finland
  • fl-BE
Flemish, Belgium
  • fr-BE
French, Belgium
  • fr-CA
French, Canada
  • fr-FR
French, France
  • fr-LU
French, Luxembourg
  • fr-CH
French, Switzerland
  • de-AT
German, Austria
  • de-DE
German, Germany
  • de-LU
German, Luxembourg
  • de-CH
German, Switzerland
  • it-IT
Italian, Italy
  • it-CH
Italian, Switzerland
  • no-NO
Norwegian, Norway
  • pl-PL
Polish, Poland
  • pt-BR
Portuguese, Brazil
  • pt-PT
Portuguese, Portugal
  • es-AR
Spanish, Argentina
  • es-BO
Spanish, Bolivia
  • es-CL
Spanish, Chile
  • es-CO
Spanish, Colombia
  • es-CR
Spanish, Costa Rica
  • es-DO
Spanish, Dominican Republic
  • es-EC
Spanish, Ecuador
  • es-SV
Spanish, El Salvador
  • es-GT
Spanish, Guatemala
  • es-HN
Spanish, Honduras
  • es-MX
Spanish, Mexico
  • es-NI
Spanish, Nicaragua
  • es-PA
Spanish, Panama
  • es-PE
Spanish, Peru
  • es-ES
Spanish, Spain
  • es-US
Spanish, United States
  • es-VE
Spanish, Venezuela
  • sv-SE
Swedish, Sweden

[1] Includes Wales, Scotland, and Northern Ireland.

ServiceId Conditional Integer Database ID of the television service. Supplying a service ID in this request returns information about that television service only.

If you don't already have the service ID, use ServiceSearch instead to return the list of television services available in an area.

Condition: The request must contain one of these parameters:

  • ServiceId
  • ServiceSearch
ServiceSearch Conditional GetServicesSearch Country or postal code and, optionally, ID of a cable or satellite operator.

Condition: The request must contain one of these parameters:

  • ServiceId
  • ServiceSearch
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).

The UTC offset that applies to a television service changes, so the response shows the start and end points of the UTC offsets during the period covered by Duration and StartDate.

StartDate No Nullable DateTime Starting point of the returned UTC offset information. Default is the time of the request.

The UTC offset that applies to a television service changes, so the response shows the start and end points of the UTC offsets during the period covered by Duration and StartDate.

Response

Response Header

ResponseTypeDescription
BuildStringSoftware build version of the API.
ClientBatchIdStringThe batch ID you supplied in the request.
EndTimestampDateTimeTime the server finished processing the request.
ErrorsError [ ]Processing errors or warnings.
RequestIdString GUIDA generated value that identifies the request and response.
StatusStatusProcessing status, indicating whether the request was successfully processed.
TimeStampDateTimeTime the server started processing the request.

Response for GetServices

NameTypeDescription
Services Service [ ] Information about the television services you requested.

Response Example

The following is a sample SOAP 1.2 response with placeholders that show the type of content returned in an actual response.
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>
    <GetServicesResponse xmlns="http://api.rovicorp.com/v9/listings">
      <GetServicesResult>
        <Services>
          <Service>
            <ServiceId>int</ServiceId>
            <Name>string</Name>
            <City>string</City>
            <Type>string</Type>
            <MSO>string</MSO>
            <MSOID>string</MSOID>
            <SystemName>string</SystemName>
            <TimeZones xsi:nil="true" />
            <ServiceClass>string</ServiceClass>
          </Service>
          <Service>
            <ServiceId>int</ServiceId>
            <Name>string</Name>
            <City>string</City>
            <Type>string</Type>
            <MSO>string</MSO>
            <MSOID>string</MSOID>
            <SystemName>string</SystemName>
            <TimeZones xsi:nil="true" />
            <ServiceClass>string</ServiceClass>
          </Service>
        </Services>
      </GetServicesResult>
    </GetServicesResponse>
  </soap12:Body>
</soap12:Envelope>

Error Codes

CodeNameDescription
1001 Core_MandatoryFieldMissing A mandatory parameter is not specified.
10603 LookupService_InvalidLocale The locale specified in the request is invalid.

See Also

Top

Personal tools