cloudconvert / cloudconvert-dotnet

CloudConvert .NET SDK
Other
20 stars 15 forks source link

[BUG] Get task and its payload doesn't return the payload #11

Open Ggeorgi98 opened 2 years ago

Ggeorgi98 commented 2 years ago

If I try to get the data for a particular task with its payload, for example, an import task, I get the data for the task but without the task's payload although I passed "payload" to the method as a value to the "include" parameter.

e.g. GetTaskAsync("{task_id}", new string[1] { "payload" });

The response won't include the payload and the property is always null. The reason is that in this way as you pass the included value - $"{_apiUrl}/tasks/{id}?include={include}" - it won't be replaced with the value from the array that I pass as a parameter to GetTaskAsync method but will be replaced with System.String[]. This means that the include parameter in the URL query will be wrong - "{_apiUrl}/tasks/{id}?include=System.String[]".