Export-API för hela Tjänsteguiden
FormatXML AuthLogin ConsumerStadsnät
list_offers
List all offers that are attached to services, with information of how they may change the monthly price
  • Request


    GET /admin/edit/services/plain/api
    • Attributes


    • Example request


      GET /admin/edit/services/plain/api?method=list_offers&hash=abcd
    • Response success: 200


      HTTP/1.1 200
      Content-Type: application/xml
        <list_offers>     <response>       <offers>         <offer>           <id>9</id>           <headline>3 månader halva priset!</headline>           <shortheadline>3 månader halva priset!</shortheadline>           <shorttext></shorttext>           <text>Kampanj 3 månader halva priset....</text>           <url>http://www.bredband2.com</url>           <image>/media/modules/serviceimages/SNF/2011/01/13/10/kampanj.jpg</image>           <banner>/media/modules/serviceimages/SNF/2011/01/13/10/banner.jpg</banner>           <start>2012-01-31</start>           <stop>2012-12-31</stop>           <xsp>29933</xsp>           <link>/serviceguide/campaigns.php?id=9</link>           <value>             <monthly>100</monthly>             <monthly_qualifier>amount</monthly_qualifier>             <monthly_type>fixed price</monthly_type>             <monthly_period>3</monthly_period>             <addedvalue>777</addedvalue>             <start>120</start>             <commitment>3</commitment>             <quit>1</quit>           </value>           <services>             <service>               <id>195</id>             </service>             <service>               <id>196</id>             </service>             <service>               <id>198</id>             </service>             <service>               <id>207</id>             </service>             <service>               <id>212</id>             </service>             <service>               <id>216</id>             </service>           </services>         </offer>       </offers>     </response>     <status>success</status>   </list_offers>