RestApi-Navigation » ServiceOperations » ProductIsListed

ProductIsListed

Zuletzt geändert von Thomas Hoffmann am 2014/04/14 16:56
Kommentare (0) · Anhänge (0) · Historie

Mit dieser ServiceOperation kann geprüft werden, ob ein Produkt bei eBay eingestellt ist.


Diese ServiceOperation erlaubt nur die Request Methode:  GET.
 

Parameter

ParamterWerttypErläuterung
productIdInt64Entspricht der Id aus dem EntitySet Products.

Request

Das unten aufgeführten Beispiel bezieht sich auf das Entity mit der Id 1.


GET                     http://sandboxapi.via.de/publicapi/v1/api.svc/ProductIsListed?productId=1L

Request HTTP-Header


Content-Type:           application/xml
SubscriptionToken:      g93af799-6ae8-e111-8406-0050568261dc
Cookie:                 .ASPXAUTH=0186587E1743637D35632A7EDAF4F07EA67C6E4577770C3778FD9C17904A9D85B01369A8198B23A9AF530DBE93A68687C219BE1876B16B 0DAEBBD2C3318CA6C99D9C53E5B9FE17B7CF9661C5CDDDB97B90D5D3AF550100227EC8D6E6858FAE986AF2302C337B8DFEC6099898C19AA335A81317AB2B382DE72586AA9DF830C715332215AEBFD5E2FBA45F2BB5A7CA9793; path=/; HttpOnly

Request Body


Nicht erforderlich

Response

Response Header


Status Code:            200 OK
Cache-Control:          no-cache
DataServiceVersion:     1.0;
...

Response Body



<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<ProductIsListed p1:type="Edm.Boolean" xmlns:p1="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices">true</ProductIsListed>


Request HTTP-Header


Content-Type:           application/json
SubscriptionToken:      g93af799-6ae8-e111-8406-0050568261dc
Cookie:                 .ASPXAUTH=0186587E1743637D35632A7EDAF4F07EA67C6E4577770C3778FD9C17904A9D85B01369A8198B23A9AF530DBE93A68687C219BE1876B16B 0DAEBBD2C3318CA6C99D9C53E5B9FE17B7CF9661C5CDDDB97B90D5D3AF550100227EC8D6E6858FAE986AF2302C337B8DFEC6099898C19AA335A81317AB2B382DE72586AA9DF830C715332215AEBFD5E2FBA45F2BB5A7CA9793; path=/; HttpOnly

Request Body


Nicht erforderlich

Response

Response Header


Status Code:            200 OK
Cache-Control:          no-cache
DataServiceVersion:     1.0;
...

Response Body


{
 "d": {
   "ProductIsListed": true
  }
}


Ist ein Produkt nicht bei eBay aktiv, wird im Response anstatt true false zurück gegeben.

Tags:
Erstellt von Thomas Hoffmann am 2013/10/08 09:50

Copyright 2004-2023 XWiki