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); }
/// <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); }