• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rwjdk / TrelloDotNet / 19698231357

26 Nov 2025 09:05AM UTC coverage: 80.581% (-0.2%) from 80.785%
19698231357

push

github

rwjdk
Tweaks

2557 of 3464 branches covered (73.82%)

Branch coverage included in aggregate %.

4547 of 5352 relevant lines covered (84.96%)

126.64 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

53.33
/src/TrelloDotNet/TrelloClient.Generic.cs
1
using System.Threading;
2
using System.Threading.Tasks;
3
using TrelloDotNet.Model;
4

5
namespace TrelloDotNet
6
{
7
    public partial class TrelloClient
8
    {
9
        /// <summary>
10
        /// Sends a custom POST request to an unexposed Trello API endpoint and returns the response as a strongly-typed object. Use System.Text.Json.Serialization.JsonPropertyName on your class to match JSON properties.
11
        /// </summary>
12
        /// <typeparam name="T">The type of object to return</typeparam>
13
        /// <param name="urlSuffix">API Suffix (the part after https://api.trello.com/1/ and before any URI parameters)</param>
14
        /// <param name="parameters">Additional query parameters for the request</param>
15
        /// <returns>The deserialized object from the response</returns>
16
        public async Task<T> PostAsync<T>(string urlSuffix, params QueryParameter[] parameters)
17
        {
18
            return await PostAsync<T>(urlSuffix, CancellationToken.None, parameters);
×
19
        }
×
20

21
        /// <summary>
22
        /// Sends a custom POST request to an unexposed Trello API endpoint and returns the response as a strongly-typed object. Use System.Text.Json.Serialization.JsonPropertyName on your class to match JSON properties.
23
        /// </summary>
24
        /// <typeparam name="T">The type of object to return</typeparam>
25
        /// <param name="urlSuffix">API Suffix (the part after https://api.trello.com/1/ and before any URI parameters)</param>
26
        /// <param name="cancellationToken">Cancellation Token</param>
27
        /// <param name="parameters">Additional query parameters for the request</param>
28
        /// <returns>The deserialized object from the response</returns>
29
        public async Task<T> PostAsync<T>(string urlSuffix, CancellationToken cancellationToken = default, params QueryParameter[] parameters)
30
        {
31
            return await _apiRequestController.Post<T>(urlSuffix, cancellationToken, parameters);
1✔
32
        }
1✔
33

34
        /// <summary>
35
        /// Sends a custom POST request to an unexposed Trello API endpoint and returns the response as a JSON string.
36
        /// </summary>
37
        /// <param name="urlSuffix">API Suffix (the part after https://api.trello.com/1/ and before any URI parameters)</param>
38
        /// <param name="parameters">Additional query parameters for the request</param>
39
        /// <returns>The JSON response as a string</returns>
40
        public async Task<string> PostAsync(string urlSuffix, params QueryParameter[] parameters)
41
        {
42
            return await PostAsync(urlSuffix, CancellationToken.None, parameters);
×
43
        }
×
44

45
        /// <summary>
46
        /// Sends a custom POST request to an unexposed Trello API endpoint and returns the response as a JSON string.
47
        /// </summary>
48
        /// <param name="urlSuffix">API Suffix (the part after https://api.trello.com/1/ and before any URI parameters)</param>
49
        /// <param name="cancellationToken">Cancellation Token</param>
50
        /// <param name="parameters">Additional query parameters for the request</param>
51
        /// <returns>The JSON response as a string</returns>
52
        public async Task<string> PostAsync(string urlSuffix, CancellationToken cancellationToken = default, params QueryParameter[] parameters)
53
        {
54
            return await _apiRequestController.Post(urlSuffix, cancellationToken, 0, parameters);
2✔
55
        }
1✔
56

57
        /// <summary>
58
        /// Sends a custom PUT request to an unexposed Trello API endpoint and returns the response as a strongly-typed object. Use System.Text.Json.Serialization.JsonPropertyName on your class to match JSON properties.
59
        /// </summary>
60
        /// <typeparam name="T">The type of object to return</typeparam>
61
        /// <param name="urlSuffix">API Suffix (the part after https://api.trello.com/1/ and before any URI parameters)</param>
62
        /// <param name="parameters">Additional query parameters for the request</param>
63
        /// <returns>The deserialized object from the response</returns>
64
        public async Task<T> PutAsync<T>(string urlSuffix, params QueryParameter[] parameters)
65
        {
66
            return await PutAsync<T>(urlSuffix, CancellationToken.None, parameters);
×
67
        }
×
68

69
        /// <summary>
70
        /// Sends a custom PUT request to an unexposed Trello API endpoint and returns the response as a strongly-typed object. Use System.Text.Json.Serialization.JsonPropertyName on your class to match JSON properties.
71
        /// </summary>
72
        /// <typeparam name="T">The type of object to return</typeparam>
73
        /// <param name="urlSuffix">API Suffix (the part after https://api.trello.com/1/ and before any URI parameters)</param>
74
        /// <param name="cancellationToken">Cancellation Token</param>
75
        /// <param name="parameters">Additional query parameters for the request</param>
76
        /// <returns>The deserialized object from the response</returns>
77
        public async Task<T> PutAsync<T>(string urlSuffix, CancellationToken cancellationToken = default, params QueryParameter[] parameters)
78
        {
79
            return await _apiRequestController.Put<T>(urlSuffix, cancellationToken, parameters);
1✔
80
        }
1✔
81

82
        /// <summary>
83
        /// Sends a custom PUT request to an unexposed Trello API endpoint and returns the response as a JSON string.
84
        /// </summary>
85
        /// <param name="urlSuffix">API Suffix (the part after https://api.trello.com/1/ and before any URI parameters)</param>
86
        /// <param name="parameters">Additional query parameters for the request</param>
87
        /// <returns>The JSON response as a string</returns>
88
        public async Task<string> PutAsync(string urlSuffix, params QueryParameter[] parameters)
89
        {
90
            return await PutAsync(urlSuffix, CancellationToken.None, parameters);
×
91
        }
×
92

93
        /// <summary>
94
        /// Sends a custom PUT request to an unexposed Trello API endpoint and returns the response as a JSON string.
95
        /// </summary>
96
        /// <param name="urlSuffix">API Suffix (the part after https://api.trello.com/1/ and before any URI parameters)</param>
97
        /// <param name="cancellationToken">Cancellation Token</param>
98
        /// <param name="parameters">Additional query parameters for the request</param>
99
        /// <returns>The JSON response as a string</returns>
100
        public async Task<string> PutAsync(string urlSuffix, CancellationToken cancellationToken, params QueryParameter[] parameters)
101
        {
102
            return await _apiRequestController.Put(urlSuffix, cancellationToken, 0, parameters);
2✔
103
        }
1✔
104

105
        /// <summary>
106
        /// Sends a custom PUT request with a JSON payload to an unexposed Trello API endpoint and returns the response as a JSON string.
107
        /// </summary>
108
        /// <param name="urlSuffix">API Suffix (the part after https://api.trello.com/1/ and before any URI parameters)</param>
109
        /// <param name="payload">The JSON payload to send in the request body</param>
110
        /// <param name="parameters">Additional query parameters for the request</param>
111
        /// <returns>The JSON response as a string</returns>
112
        public async Task<string> PutAsync(string urlSuffix, string payload, params QueryParameter[] parameters)
113
        {
114
            return await PutAsync(urlSuffix, payload, CancellationToken.None, parameters);
×
115
        }
×
116

117
        /// <summary>
118
        /// Sends a custom PUT request with a JSON payload to an unexposed Trello API endpoint and returns the response as a JSON string.
119
        /// </summary>
120
        /// <param name="urlSuffix">API Suffix (the part after https://api.trello.com/1/ and before any URI parameters)</param>
121
        /// <param name="payload">The JSON payload to send in the request body</param>
122
        /// <param name="cancellationToken">Cancellation Token</param>
123
        /// <param name="parameters">Additional query parameters for the request</param>
124
        /// <returns>The JSON response as a string</returns>
125
        public async Task<string> PutAsync(string urlSuffix, string payload, CancellationToken cancellationToken = default, params QueryParameter[] parameters)
126
        {
127
            return await _apiRequestController.PutWithJsonPayload(urlSuffix, cancellationToken, payload, 0, parameters);
1✔
128
        }
1✔
129

130
        /// <summary>
131
        /// Sends a custom GET request to an unexposed Trello API endpoint and returns the response as a strongly-typed object. Use System.Text.Json.Serialization.JsonPropertyName on your class to match JSON properties.
132
        /// </summary>
133
        /// <typeparam name="T">The type of object to return</typeparam>
134
        /// <param name="urlSuffix">API Suffix (the part after https://api.trello.com/1/ and before any URI parameters)</param>
135
        /// <param name="parameters">Additional query parameters for the request</param>
136
        /// <returns>The deserialized object from the response</returns>
137
        public async Task<T> GetAsync<T>(string urlSuffix, params QueryParameter[] parameters)
138
        {
139
            return await GetAsync<T>(urlSuffix, CancellationToken.None, parameters);
×
140
        }
×
141

142
        /// <summary>
143
        /// Sends a custom GET request to an unexposed Trello API endpoint and returns the response as a strongly-typed object. Use System.Text.Json.Serialization.JsonPropertyName on your class to match JSON properties.
144
        /// </summary>
145
        /// <typeparam name="T">The type of object to return</typeparam>
146
        /// <param name="urlSuffix">API Suffix (the part after https://api.trello.com/1/ and before any URI parameters)</param>
147
        /// <param name="cancellationToken">Cancellation Token</param>
148
        /// <param name="parameters">Additional query parameters for the request</param>
149
        /// <returns>The deserialized object from the response</returns>
150
        public async Task<T> GetAsync<T>(string urlSuffix, CancellationToken cancellationToken = default, params QueryParameter[] parameters)
151
        {
152
            return await _apiRequestController.Get<T>(urlSuffix, cancellationToken, parameters);
1✔
153
        }
1✔
154

155
        /// <summary>
156
        /// Sends a custom GET request to an unexposed Trello API endpoint and returns the response as a JSON string.
157
        /// </summary>
158
        /// <param name="urlSuffix">API Suffix (the part after https://api.trello.com/1/ and before any URI parameters)</param>
159
        /// <param name="parameters">Additional query parameters for the request</param>
160
        /// <returns>The JSON response as a string</returns>
161
        public async Task<string> GetAsync(string urlSuffix, params QueryParameter[] parameters)
162
        {
163
            return await GetAsync(urlSuffix, CancellationToken.None, parameters);
×
164
        }
×
165

166
        /// <summary>
167
        /// Sends a custom GET request to an unexposed Trello API endpoint and returns the response as a JSON string.
168
        /// </summary>
169
        /// <param name="urlSuffix">API Suffix (the part after https://api.trello.com/1/ and before any URI parameters)</param>
170
        /// <param name="cancellationToken">Cancellation Token</param>
171
        /// <param name="parameters">Additional query parameters for the request</param>
172
        /// <returns>The JSON response as a string</returns>
173
        public async Task<string> GetAsync(string urlSuffix, CancellationToken cancellationToken = default, params QueryParameter[] parameters)
174
        {
175
            return await _apiRequestController.Get(urlSuffix, cancellationToken, 0, parameters);
5✔
176
        }
1✔
177

178
        /// <summary>
179
        /// Sends a custom DELETE request to an unexposed Trello API endpoint.
180
        /// </summary>
181
        /// <param name="urlSuffix">API Suffix (the part after https://api.trello.com/1/ and before any URI parameters)</param>
182
        /// <param name="cancellationToken">Cancellation Token</param>
183
        public async Task DeleteAsync(string urlSuffix, CancellationToken cancellationToken = default)
184
        {
185
            await _apiRequestController.Delete(urlSuffix, cancellationToken, 0);
2✔
186
        }
1✔
187
    }
188
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc