Info
Version: | 0.2.1 |
Author(s): | YaDong.Wang |
Last Update: | Friday, December 13, 2019 |
.NET Fiddle: | Create the first Fiddle |
NuGet Url: | https://www.nuget.org/packages/YaDong.Artemis.Client |
Install
Install-Package YaDong.Artemis.Client
dotnet add package YaDong.Artemis.Client
paket add YaDong.Artemis.Client
YaDong.Artemis.Client Download (Unzip the "nupkg" after downloading)
Dependencies
Tags
Sample:
using YaDong.Artemis.Client;
HttpClientHandler httpClientHandler = new HttpClientHandler();
httpClientHandler.ClientCertificateOptions = ClientCertificateOption.Automatic;
httpClientHandler.ServerCertificateCustomValidationCallback = (request, x509Cert, x509Chain, sslPolicyErrors) => true;
var httpClient = new HttpClient(httpClientHandler);
httpClient.BaseAddress = new Uri("https://open8200.hikvision.com");
//url like /artemis/api/fms/v2/resource/findCamera?indexCode=65&deviceCode=65000000001310979424&pageNo=1&pageSize=20
httpResponseMessage = await httpClient.ArtemisGetAsync(url, appKey, appSecret);
//url like /artemis/api/bms/v2/searchMotorVehicles
httpResponseMessage = await httpClient.ArtemisPostAsync(url,httpContent, appKey, appSecret);
httpResponseMessage = await httpClient.ArtemisPutAsync(url, httpContent, appKey, appSecret);
httpResponseMessage = await httpClient.ArtemisDeleteAsync(url, appKey, appSecret);
Email:
[email protected].