public string Login(LoginAPIModel model) { var response = webRequestHelper.Post("/api/account/login", JsonConvert.SerializeObject(model), "application/json; charset=UTF-8", ""); if (response.HasError) { return(""); } return(response.ContainsHeader("Authorization") ? response["Authorization"] : ""); }
public IHttpRequest Post(string uri, string postData) { return(_webRequestHelper?.Post(uri, postData).SetEventCallback(OnEventCallback)); }
public void AddItem(ItemAPIModel model) { var response = webRequestHelper.Post("/api/operations/items", JsonConvert.SerializeObject(model), "application/json; charset=UTF-8", authToken); }