update_app_ioscert 请求参数
Inheritance: ClientRequestBase
コード例 #1
0
        public void UpdateIOSCertTest()
        {
            var request = new AppIOSCertUpdateRequest
            {
                Description = "test cert operate by unit test update"
            };

            var client = new Client(_apiKey, _secretKey);
            var response = client.UpdateAppIOSCert(request);

            Assert.NotNull(response);
            Assert.Greater(response.RequestId, 0);
        }
コード例 #2
0
ファイル: Client.cs プロジェクト: BiYiTuan/Baidu.SDK.Push
        /// <summary>
        /// Update App IOS Cert
        /// </summary>
        /// <param name="request">Push request parameter</param>
        /// <returns></returns>
        public AppIOSCertUpdateResponse UpdateAppIOSCert(AppIOSCertUpdateRequest request)
        {
            var postStr = request.GeneratePostData(Apikey, SecretKey);

            var response = PostData(request.ServiceUrl, postStr);
            if (response == null)
                return null;

            AppIOSCertUpdateResponse result = null;
            try
            {
                result = JsonConvert.DeserializeObject<AppIOSCertUpdateResponse>(response);
            }
            catch (Exception ex)
            {
                Debug.WriteLine("UpdateAppIOSCert Error Response Deserialize Fail, May not valid json:" + ex.Message + " " + response);
            }
            return result;
        }