List Available Services - GET /api/service

Parent Previous Next

GET /api/service                              

List the services you are using at QUANTIL.


Request Details


Request Headers


Header

Description

Required

Authorization

Authorization string for the request

Yes

Host

URI for the QUANTIL SDK (i.e., api.quantil.com)

Yes

Date

The date and time of the request.

Yes

Accept

Indicates the accepted format (i.e., application/xml)

Yes


Request Body Elements

This request does not include an XML document in the request body.


Request Syntax:


GET /api/service HTTP/1.1

Authorization: <authorization string>

Host: api.quantil.com

Date: <date>

Accept: application/xml


Here is the structure of a request using the curl utility.


curl -i --url https://api.quantil.com/api/service -X GET -u {user}: {password} -H 'Date: Thu, 17 May 2012 19:37:58 GMT' -H 'Accept: application / xml'


Sample Request:


curl -i --url 'https://api.quantil.com/api/service' -X GET -u test:7FjxDx/j6xSILkHsO5SOCDkQfJ8= -H 'Date: Wed, 06 Aug 2014 11:04:18 PDT' -H 'Accept: application/xml'

Response Details:


Response Headers:

HTTP/1.1 200OK

Date: <date>

Content-Type: application / xml; charset = utf-8

x-cnc-request-id: {id string auto generated by the QUANTIL server}



Response Body Elements

Element

Description

service-list

container for services information

service

container for information about a QUANTIL service you have subscribed to

service-name

name of a service.  Please refer to this mapping of the service names to QUANTIL's products.

service-type

type of service

Sample Response:


HTTP/1.1 200 OK

Date: Tue, 05 Aug 2014 21:46:24 GMT

Accept-Ranges: bytes

Server: WS-web-server

x-cnc-request-id: 1097267

ContentType: application/xml;charset=UTF-8

Content-Type: application/xml;charset=UTF-8

Content-Length: 272


<?xml version="1.0" encoding="UTF-8"?>

<service-list>

 <service>

   <service-name>web</service-name>

   <service-type>web</service-type>

 </service>

 <service>

   <service-name>download</service-name>

   <service-type>download</service-type>

 </service>

</service-list>



Error List

This API has no special error codes.