File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
DotNET/Endpoint Examples/Multipart Payload Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -33,14 +33,6 @@ public static async Task Execute(string[] args)
3333 var id = args [ 0 ] ;
3434 var outPath = args . Length > 1 ? args [ 1 ] : "resource.bin" ;
3535
36- var apiKey = Environment . GetEnvironmentVariable ( "PDFREST_API_KEY" ) ;
37- if ( string . IsNullOrWhiteSpace ( apiKey ) )
38- {
39- Console . Error . WriteLine ( "Missing required environment variable: PDFREST_API_KEY" ) ;
40- Environment . Exit ( 1 ) ;
41- return ;
42- }
43-
4436 var baseUrl = Environment . GetEnvironmentVariable ( "PDFREST_URL" ) ?? "https://api.pdfrest.com" ;
4537 var resourceBase = baseUrl . TrimEnd ( '/' ) + "/resource/" ;
4638
@@ -50,7 +42,6 @@ public static async Task Execute(string[] args)
5042 {
5143 using ( var request = new HttpRequestMessage ( HttpMethod . Get , id + "?format=file" ) )
5244 {
53- request . Headers . TryAddWithoutValidation ( "Api-Key" , apiKey ) ;
5445 using ( var response = await httpClient . SendAsync ( request ) )
5546 {
5647 response . EnsureSuccessStatusCode ( ) ;
You can’t perform that action at this time.
0 commit comments