Click or drag to resize
dyostem api documentation

ThirdPartySystemGetVintages Method

[This is preliminary documentation and is subject to change.]

Return the list of Vintages defined in the system for the connected customer

Namespace:  Dyostem.Services
Assembly:  Dyostem (in Dyostem.dll) Version: 5.3
Syntax
public VintagesListResult GetVintages(
	string sessionId
)

Parameters

sessionId
Type: SystemString
The SessionId returned by the OpenSession(String, String) command.

Return Value

Type: VintagesListResult
An instance of VintagesListResult compound with a Message indicating that the command succeeded or not, and the requested list.
Examples
Request
1POST http://www.dyostem.com/Services/ThirdPartySystem.svc/GetVintages HTTP/1.1
2Content-Type: application/json
3Host: www.dyostem.com
4Content-Length: 52
5Expect: 100-continue
6Connection: Keep-Alive
7
8{"sessionId":"d291a5c8-60ab-429a-a167-1a97d15c91b3"}
Response
 1HTTP/1.1 200 OK
 2Cache-Control: private
 3Transfer-Encoding: chunked
 4Content-Type: application/json; charset=utf-8
 5Server: Microsoft-IIS/7.5
 6Set-Cookie: ASP.NET_SessionId=gdv0loxmvqj3s4fvpo4oicqq; path=/; HttpOnly
 7X-AspNet-Version: 4.0.30319
 8X-Powered-By: ASP.NET
 9Date: Mon, 23 May 2016 15:02:34 GMT
10
11104
12{"d":{"__type":"VintagesListResult:#Dyostem.Services.Data","Message":"OK","Vintages":[{"__type":"Vintage:#Dyostem.Services.Data","EndDate":null,"Id":"88670414-3c1e-40c1-b597-2fe44ddef08d","Label":"Millésime 2015","StartDate":"\/Date(1420066800000+0100)\/"}]}}
130
Formated Json Response
 1{
 2  "d" : {
 3    "__type" : "VintagesListResult:#Dyostem.Services.Data",
 4    "Message" : "OK",
 5    "Vintages" : [{
 6        "__type" : "Vintage:#Dyostem.Services.Data",
 7        "EndDate" : null,
 8        "Id" : "88670414-3c1e-40c1-b597-2fe44ddef08d",
 9        "Label" : "Millésime 2015",
10        "StartDate" : "\/Date(1420066800000+0100)\/"
11     }
12   ]
13 }
14}
See Also