Exportera Tjänsteguide
Export-API för hela Tjänsteguiden
FormatXML AuthLogin ConsumerStadsnät
service_info
Service description, all information should be shown with the service
Request
GET /admin/edit/services/plain/api
Attributes
- mandatory
Data format: integer
Example: 42
ID for service from list_services() - optional
Data format: string
Example: json
What format should the response be in, valid values are 'xml' and 'json'
Example request
GET /admin/edit/services/plain/api?method=service_info&sid=42&hash=abcd
Response success: 200
HTTP/1.1 200
Content-Type: application/xml<service_info> <response> <information> <name>1/1 Mbit/s - Mini</name> <realname>Bredband 1/1 Mbps</realname> <moreinfo>MINI</moreinfo> <categories>39,1</categories> <xsp>31679</xsp> <speed>1/1 Mbit/s</speed> <local_information>Lokalt val</local_information> <local_id>BB2100100</local_id> <link>/serviceguide/service.php?id=6</link> <created>2013-06-28 15:54:00</created> <activated>2013-07-03 14:43:00</activated> <updated>2013-10-14 22:07:00</updated> </information> <categories> <category> <name>Via fiber</name> <id>39</id> </category> <category> <name>Internet</name> <id>1</id> </category> </categories> <data> <monthly> <value>134 kr</value> </monthly> <commitment> <value>3 månader</value> </commitment> <description> <value>Supersnabbt bredband till superpris!...</value> </description> <homepage> <value>yes</value> </homepage> <mail> <value>yes</value> <comment>Total lagringskapacitet på 2GB. I tjänsten ingår ett grundskydd mot spam och virus</comment> </mail> <storage> <value>no</value> </storage> <firewall> <value>addon</value> <comment>I samarbete med F-secure erbjuder vi Bahnhof Internet Security.(brandvägg och virusskydd)</comment> </firewall> <virus> <value>addon</value> <comment>I samarbete med F-secure erbjuder vi Bahnhof Internet Security.(brandvägg och virusskydd)</comment> </virus> <start> <value>199 kr</value> </start> <quit> <value>1 månad</value> </quit> <order_email> <value>order@bahnhof.se</value> </order_email> </data> </response> <status>success</status> </service_info>
Definitions
Data format: array
The categories the service should be shown in. Common is at least two, for instance "Internet" and "Via Fiber" as a sub category
Data format: array
Each data point can have a "value" and a "comment" part entered by the service provider.
Data format: string
Example: B2100100
Local ID of the service in the CO provisioning system, called "service_uid" in the admin interface.
Data format: string
Local information entered by the CO about the service
Data format: integer
Example: 123
ID of the service provider of the service, information about the service provider can be fetched via the endpoint xsp_info