コード例 #1
0
        public SingleAccessClient()
        {
            _authorizationData = new AuthorizationData();

            InitAuthData(_authorizationData);

            _russianPostService = new OperationHistory12Client();
        }
コード例 #2
0
ファイル: Client.cs プロジェクト: LightVolk/PochtaApiClient
        public Task <getOperationHistoryResponse> GetOperationHistory(string trackID)
        {
            OperationHistory12Client operationHistory12Client = new OperationHistory12Client(OperationHistory12Client.EndpointConfiguration.OperationHistory12Port);

            return(operationHistory12Client.getOperationHistoryAsync(new OperationHistoryRequest()
            {
                Barcode = trackID,
                Language = "RUS",
                MessageType = 0
            }, _config.GetAuthorizationHeader()));
        }