From 69acbec46445a0b123e78def4fa15edecd46e8bc Mon Sep 17 00:00:00 2001 From: Ted Spence Date: Fri, 12 Jan 2024 10:01:52 -0800 Subject: [PATCH] Fix byte reference --- src/Clients/FileClient.cs | 8 ++++---- src/Clients/TeamsClient.cs | 4 ++-- src/Interfaces/IFileClient.cs | 4 ++-- src/Interfaces/ITeamsClient.cs | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Clients/FileClient.cs b/src/Clients/FileClient.cs index 04b0e12..dcd4af0 100644 --- a/src/Clients/FileClient.cs +++ b/src/Clients/FileClient.cs @@ -54,12 +54,12 @@ public FileClient(ProjectManagerClient client) /// /// The unique identifier of the document to download /// If you specify a type of `html`, processes the file using text encoding, otherwise binary - public async Task> DownloadFile(Guid documentId, string type = null) + public async Task> DownloadFile(Guid documentId, string type = null) { var url = $"/api/data/files/{documentId}/download"; var options = new Dictionary(); if (type != null) { options["type"] = type; } - return await _client.Request(HttpMethod.Get, url, options, null, null); + return await _client.Request(HttpMethod.Get, url, options, null, null); } /// @@ -76,10 +76,10 @@ public async Task> DownloadFile(Guid documentId, string type = /// occurs, you will receive a JSON result with error information. /// /// The unique identifier of the document for which to download the thumbnail. - public async Task> DownloadaThumbnailImage(Guid documentId) + public async Task> DownloadaThumbnailImage(Guid documentId) { var url = $"/api/data/files/{documentId}/thumbnail"; - return await _client.Request(HttpMethod.Get, url, null, null, null); + return await _client.Request(HttpMethod.Get, url, null, null, null); } /// diff --git a/src/Clients/TeamsClient.cs b/src/Clients/TeamsClient.cs index ab167ca..539f0fe 100644 --- a/src/Clients/TeamsClient.cs +++ b/src/Clients/TeamsClient.cs @@ -44,10 +44,10 @@ public TeamsClient(ProjectManagerClient client) /// The Teams API is intended for use by ProjectManager and its business development partners. Please /// contact ProjectManager's sales team to request use of this API. /// - public async Task> RetrievezipfileforTeamsIntegrations() + public async Task> RetrievezipfileforTeamsIntegrations() { var url = $"/api/data/integrations/teams/application"; - return await _client.Request(HttpMethod.Get, url, null, null, null); + return await _client.Request(HttpMethod.Get, url, null, null, null); } } } diff --git a/src/Interfaces/IFileClient.cs b/src/Interfaces/IFileClient.cs index b6abce3..a853009 100644 --- a/src/Interfaces/IFileClient.cs +++ b/src/Interfaces/IFileClient.cs @@ -43,7 +43,7 @@ public interface IFileClient /// /// The unique identifier of the document to download /// If you specify a type of `html`, processes the file using text encoding, otherwise binary - Task> DownloadFile(Guid documentId, string type = null); + Task> DownloadFile(Guid documentId, string type = null); /// /// Downloads a thumbnail image associated with a document that was previously uploaded to ProjectManager.com. @@ -59,7 +59,7 @@ public interface IFileClient /// occurs, you will receive a JSON result with error information. /// /// The unique identifier of the document for which to download the thumbnail. - Task> DownloadaThumbnailImage(Guid documentId); + Task> DownloadaThumbnailImage(Guid documentId); /// /// Updates information about a File uploaded to your Workspace. diff --git a/src/Interfaces/ITeamsClient.cs b/src/Interfaces/ITeamsClient.cs index 779ebba..0cf5163 100644 --- a/src/Interfaces/ITeamsClient.cs +++ b/src/Interfaces/ITeamsClient.cs @@ -33,6 +33,6 @@ public interface ITeamsClient /// The Teams API is intended for use by ProjectManager and its business development partners. Please /// contact ProjectManager's sales team to request use of this API. /// - Task> RetrievezipfileforTeamsIntegrations(); + Task> RetrievezipfileforTeamsIntegrations(); } }