TeamViewer.Api
0.1.9
dotnet add package TeamViewer.Api --version 0.1.9
NuGet\Install-Package TeamViewer.Api -Version 0.1.9
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TeamViewer.Api" Version="0.1.9" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TeamViewer.Api" Version="0.1.9" />
<PackageReference Include="TeamViewer.Api" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TeamViewer.Api --version 0.1.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TeamViewer.Api, 0.1.9"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package TeamViewer.Api@0.1.9
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TeamViewer.Api&version=0.1.9
#tool nuget:?package=TeamViewer.Api&version=0.1.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
TeamViewer.Api
A comprehensive .NET library for the TeamViewer REST API.
Installation
dotnet add package TeamViewer.Api
Or via the NuGet Package Manager:
Install-Package TeamViewer.Api
Quick Start
using TeamViewer.Api;
// Create the client with your Script Token
var options = new TeamViewerClientOptions
{
ScriptToken = "your-script-token-here"
};
using var client = new TeamViewerClient(options);
// Test connectivity
var ping = await client
.Ping
.PingAsync(cancellationToken);
// Get account information
var account = await client
.Account
.GetAsync(cancellationToken);
// List users
var users = await client.Users.GetUsersAsync(new GetUsersRequest(), cancellationToken);
foreach (var user in users.Users)
{
Console.WriteLine(user.Name);
}
// List devices
var devices = await client
.Devices
.GetAsync(new GetDevicesRequest(), cancellationToken);
foreach (var device in devices.Devices)
{
Console.WriteLine(device.Alias);
}
Features
- Full TeamViewer REST API coverage - Users, Groups, Devices, Contacts, Sessions, Meetings, Reports, Policies, and more
- Script Token authentication - Simple bearer token authentication
- Automatic retry with exponential backoff - Handles rate limiting (429) and transient errors (5xx)
- Comprehensive logging support - Integrates with Microsoft.Extensions.Logging
- Strongly-typed models - Full IntelliSense support with XML documentation
- Async/await patterns - All methods are async with CancellationToken support
- Modern .NET - Built for .NET 10 with nullable reference types
Supported APIs
| API | Description |
|---|---|
| Ping | Test connectivity and token validity |
| Account | Get and update account information |
| Users | Manage company users (CRUD operations) |
| Groups | Manage groups and sharing |
| Devices | Manage devices in Computers and Contacts |
| Contacts | Manage contacts |
| Sessions | Manage session codes for remote support |
| Meetings | Schedule and manage meetings |
| Reports | Access connection and device reports |
| Event Logging | Access audit logs |
| Policies | Manage TeamViewer policies |
Authentication
TeamViewer.Api uses Script Token authentication. To obtain a Script Token:
- Log in to the TeamViewer Management Console
- Navigate to Company Administration > API Access
- Click Create Script Token
- Configure the required permissions for your use case
- Copy the generated token
API Documentation
The TeamViewer API documentation can be found here:
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Microsoft.Extensions.Http (>= 10.0.2)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.2)
- Refit (>= 9.0.2)
- Refit.HttpClientFactory (>= 9.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.9 | 44 | 1/19/2026 |
Initial release with full TeamViewer API coverage.