public bool Run(String words) { Request = new ImportKoinifyRequest(); Request.param.words = words; return(Run(Request)); }
public bool Run(ImportKoinifyRequest requestData) { var request = new RestRequest(Method.POST); request.JsonSerializer = new NewtonsoftJsonSerializer(); request.AddJsonBody(requestData); var reply = Client.RestClient.Execute(request); JsonReply = reply.Content; if (reply.StatusCode == System.Net.HttpStatusCode.OK) { Result = JsonConvert.DeserializeObject <ImportKoinifyResult>(reply.Content); return(true); } return(false); }