Developer Forum [ All Topics | New Topic ]

Thread: Rapaport Price List Formats & API's error

Get price sheet - retrieve all Rapaport prices in one go


{
"shape": "round",
"low_size": 0.04,
"high_size": 0.07,
"color": "d",
"clarity": "if",
"c...-12-25"
},


>> add a comment
cuibty
01/06/2016 08:02


2 Replies:

hi
send only shape
{
"shape": "round"
}
see example :
http://technet.rapaport.com/Info/Prices/SampleCode/JSON_CodeSample.aspx

>> add a comment
Reuven
1/6/2016 10:45:00 AM
var client = new RestClient("https://technet.rapaport.com/HTTP/JSON/Prices/GetPriceSheet.aspx");
string Data = @"
{
'request': {
'header': {
'username': 'username',
'password': 'password'
},
'body': {
'shape': 'round'
}
}
}
";
var request = new RestRequest(Method.POST)
{
RequestFormat = DataFormat.Json
};
request.AddParameter("application/x-www-form-urlencoded", Data, ParameterType.RequestBody);
var res = client.Execute(request);


>> add a comment
cuibty
1/8/2016 3:05:00 AM