public async Task <dynamic> UpdateTextAsync(string userId, string textId, string requestBody) { string url = functionsApiProxy + "/text/" + textId + "/?userId=" + userId; var httpContent = new StringContent(requestBody, Encoding.UTF8, jsonMimeType); return(await CRUDService.HttpMethodAsync("PATCH", url, httpContent)); }
public async Task <dynamic> CreateAudioAsync(string userId, string audioId, string requestBody) { string url = functionsApiProxy + "/audio/" + audioId + "/?userId=" + userId; var httpContent = new StringContent(requestBody, Encoding.UTF8, jsonMimeType); return(await CRUDService.HttpMethodAsync("POST", url, httpContent)); }
public async Task <dynamic> DeleteCategoryAsync(string userId, string categoryId) { string url = functionsApiProxy + "/categories/" + categoryId + "/?userId=" + userId; return(await CRUDService.HttpMethodAsync("DELETE", url, null)); }
/** CATEGORY CRUD Methods */ public async Task <dynamic> GetCategoriesAsync(string userId) { string url = functionsApiProxy + "/categories?userId=" + userId; return(await CRUDService.HttpMethodAsync("GET", url, null)); }
public async Task <dynamic> DeleteTextAsync(string userId, string textId) { string url = functionsApiProxy + "/text/" + textId + "/?userId=" + userId; return(await CRUDService.HttpMethodAsync("DELETE", url, null)); }
public async Task <dynamic> ListTextAsync(string userId) { string url = functionsApiProxy + "/text?userId=" + userId; return(await CRUDService.HttpMethodAsync("GET", url, null)); }
public async Task <dynamic> GetAudioAsync(string userId, string audioId) { string url = functionsApiProxy + "/audio/" + audioId + "/?userId=" + userId; return(await CRUDService.HttpMethodAsync("GET", url, null)); }
public async Task <dynamic> DeleteImageAsync(string userId, string imageId) { string url = functionsApiProxy + "/images/" + imageId + "/?userId=" + userId; return(await CRUDService.HttpMethodAsync("DELETE", url, null)); }