General Information
Products: FastReport Cloud, FastReport Corporate Server, FastReport Publisher
In this article we will cover task types and how to work with them.
Getting Started
You will need the following tools and capabilities:
Know how to use API key in Service solutions.
This article will skip additional information on authentication and authorization.
C# code editor or text editor, such as Visual Studio Code.
Report template.
It can be prepared using the free FastReport Community Designer program.
Active subscription to one of the following products: FastReport Cloud, FastReport Corporate Server, or FastReport Publisher.
Internet access.
Note! This guide assumes that you already know how to develop your application in the C# programming language.
Note! The points above describe the recommended tools.
First, you need to create an HttpClient that we will use later:
var httpClient = new HttpClient();
httpClient.BaseAddress = new Uri("https://fastreport.cloud");
httpClient.DefaultRequestHeaders.Authorization = new FastReportCloudApiKeyHeader(ApiKey);
Next, let's get the subscription that we will work with tasks:
var subscriptions = new SubscriptionsClient(httpClient);
var subscription = (await subscriptions.GetSubscriptionsAsync(0, 10)).Subscriptions.FirstOrDefault();
Now we need to create a client for working with tasks:
TasksClient tasksClient = new TasksClient(httpClient);
Now you can proceed directly to working with tasks.