update_app_ioscert 请求参数
상속: 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
        /// <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;
        }