Esempio n. 1
0
        /// <summary>
        /// Being a new asynchronous ListBulkJobsAdminRequest
        /// </summary>
        /// <param name="requestData"></param>
        /// <returns></returns>
        public async Task <ListBulkJobsAdminResponse> ListBulkJobsAdminRequestAsync(ListBulkJobsAdminRequest requestData)
        {
            var res = await Requestor.PostStringAsync(Urls.ListBulkJobsAdminRequest, JsonHelper.SerializeData(requestData));

            return(JsonConvert.DeserializeObject <ListBulkJobsAdminResponse>(res.ResponseJson));
        }
Esempio n. 2
0
 /// <summary>
 /// Begin a new ListBulkJobsAdminRequest
 /// </summary>
 /// <param name="requestData"></param>
 /// <returns></returns>
 public ListBulkJobsAdminResponse ListBulkJobsAdminRequest(ListBulkJobsAdminRequest requestData)
 {
     return(JsonConvert.DeserializeObject <ListBulkJobsAdminResponse>(Requestor.PostString(Urls.BatchAdminRequest, JsonHelper.SerializeData(requestData)).ResponseJson));
 }