This commit is contained in:
@@ -143,10 +143,12 @@ namespace Sockeye.Biz
|
||||
password = "b43698c255365ee739c05ba0d42855e96c2365c76bb2f9b9eb149cec7b52174c"
|
||||
}), Encoding.UTF8, "application/json");
|
||||
|
||||
// var content = new StringContent("login=john&password=b43698c255365ee739c05ba0d42855e96c2365c76bb2f9b9eb149cec7b52174c", Encoding.UTF8, "application/json");
|
||||
|
||||
|
||||
var client = ServiceProviderProvider.HttpClientFactory.CreateClient();
|
||||
|
||||
|
||||
//AUTHENTICATE
|
||||
var res = await client.PostAsync($"{URL_ROCKFISH}authenticate?login=john&password=b43698c255365ee739c05ba0d42855e96c2365c76bb2f9b9eb149cec7b52174c", content);
|
||||
var responseText = await res.Content.ReadAsStringAsync();
|
||||
|
||||
@@ -174,13 +176,33 @@ namespace Sockeye.Biz
|
||||
// }}
|
||||
|
||||
|
||||
//CUSTOMERS
|
||||
/*
|
||||
[
|
||||
{
|
||||
"active": false,
|
||||
"lapsed": true,
|
||||
"id": 1,
|
||||
"name": "4PRINT"
|
||||
},
|
||||
{
|
||||
"active": true,
|
||||
"lapsed": false,
|
||||
"id": 118,
|
||||
"name": "AAA TEST DEVELOPMENT"
|
||||
},etc
|
||||
*/
|
||||
res = await client.PostAsync($"{URL_ROCKFISH}/api/customer/list", content);
|
||||
responseText = await res.Content.ReadAsStringAsync();
|
||||
responseJson = JObject.Parse(responseText);
|
||||
//
|
||||
|
||||
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
var msg = "E1020 - Error authenticating to rockfish see log for details";
|
||||
var msg = "Error importing rockfish";
|
||||
log.LogError(ex, msg);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user