コード例 #1
0
        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));
        }
コード例 #2
0
        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));
        }
コード例 #3
0
        public async Task <dynamic> DeleteCategoryAsync(string userId, string categoryId)
        {
            string url = functionsApiProxy + "/categories/" + categoryId + "/?userId=" + userId;

            return(await CRUDService.HttpMethodAsync("DELETE", url, null));
        }
コード例 #4
0
        /** CATEGORY CRUD Methods */
        public async Task <dynamic> GetCategoriesAsync(string userId)
        {
            string url = functionsApiProxy + "/categories?userId=" + userId;

            return(await CRUDService.HttpMethodAsync("GET", url, null));
        }
コード例 #5
0
        public async Task <dynamic> DeleteTextAsync(string userId, string textId)
        {
            string url = functionsApiProxy + "/text/" + textId + "/?userId=" + userId;

            return(await CRUDService.HttpMethodAsync("DELETE", url, null));
        }
コード例 #6
0
        public async Task <dynamic> ListTextAsync(string userId)
        {
            string url = functionsApiProxy + "/text?userId=" + userId;

            return(await CRUDService.HttpMethodAsync("GET", url, null));
        }
コード例 #7
0
        public async Task <dynamic> GetAudioAsync(string userId, string audioId)
        {
            string url = functionsApiProxy + "/audio/" + audioId + "/?userId=" + userId;

            return(await CRUDService.HttpMethodAsync("GET", url, null));
        }
コード例 #8
0
        public async Task <dynamic> DeleteImageAsync(string userId, string imageId)
        {
            string url = functionsApiProxy + "/images/" + imageId + "/?userId=" + userId;

            return(await CRUDService.HttpMethodAsync("DELETE", url, null));
        }