Click or drag to resize
dyostem api documentation

ThirdPartySystemGetMeasureTypes Method

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

Return the list of all measure types defined in the system for the connected customer.

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

Parameters

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

Return Value

Type: MeasureTypesListResult
An instance of MeasureTypesListResult 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/GetMeasureTypes 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=gsvjqhbvaz4wkjbaq4kyrhel; path=/; HttpOnly
 7X-AspNet-Version: 4.0.30319
 8X-Powered-By: ASP.NET
 9Date: Thu, 23 Jun 2016 14:17:24 GMT
10
11eac
12{"d":{ "__type":"MeasureTypesListResult:#Dyostem.Services.Data","MeasureTypes":[{"__type":"MeasureType:#Dyostem.Services.Data","AvailableValues":null,"Format":"Numérique","Id":"ed51e049-156b-431e-83a4-eeaf1faeca3c","Name":"Acide malique","Unit":"g\/l"},
1314{"__type":"MeasureType:#Dyostem.Services.Data","AvailableValues":[],"Format":"Numérique","Id":"c89276a6-bfbf-49e2-87ac-8d62f5c6da64","Name":"Volume moyen","Unit":"ml"}],"Message":"OK"}}
150
Formated Json Response
 1{
 2  "d" : {
 3    "__type" : "MeasureTypesListResult:#Dyostem.Services.Data",
 4    "MeasureTypes" : [{
 5        "__type" : "MeasureType:#Dyostem.Services.Data",
 6        "AvailableValues" : null,
 7        "Format" : "Numérique",
 8        "Id" : "ed51e049-156b-431e-83a4-eeaf1faeca3c",
 9        "Name" : "Acide malique",
10        "Unit" : "g\/l"
11      }, 
1213      {
14        "__type" : "MeasureType:#Dyostem.Services.Data",
15        "AvailableValues" : [],
16        "Format" : "Numérique",
17        "Id" : "c89276a6-bfbf-49e2-87ac-8d62f5c6da64",
18        "Name" : "Volume moyen",
19        "Unit" : "ml"
20      }
21    ],
22    "Message" : "OK"
23  }
24}
See Also