API tracking for Windows apps
Apptics SDK provides multiple options for tracking your application APIs. To track the APIs, configure them in the Apptics web console, refer to our User Guide.
- Once the configuration is done in the web console, you will get an API ID.
- Use the below at the start of the API.
For UWP apps
Copied
For WinUI apps
Copied
- The above method will return the "ApiDetails" object, which will be used in the EndApi call.
- At end of API, call the below function.
For UWP apps
Copied
For WinUI apps
Copied
(OR)
Use interceptor type tracking
- Select APIs under the Stats from the left menu in the Apptics UI.
- Add the APIs that you want to track, refer to the User Guide to understand how to add the APIs in the Apptics console.
- The requested API is intercepted by the filter or a delegating handler.
- The requested API is implemented for the HttpClient() from the following two namespaces, i.e. Windows.Web.Http and System.Net.Http.
System.Net.Http
For UWP apps
Copied
For WinUI apps
Copied
(OR)
Windows.Web.Http
For UWP apps
Copied
For WinUI apps
Copied