FigmaDotNet 1.4.2
dotnet add package FigmaDotNet --version 1.4.2
NuGet\Install-Package FigmaDotNet -Version 1.4.2
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="FigmaDotNet" Version="1.4.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FigmaDotNet" Version="1.4.2" />
<PackageReference Include="FigmaDotNet" />
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 FigmaDotNet --version 1.4.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FigmaDotNet, 1.4.2"
#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 FigmaDotNet@1.4.2
#: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=FigmaDotNet&version=1.4.2
#tool nuget:?package=FigmaDotNet&version=1.4.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
FigmaDotNet
.NET SDK for Figma REST API
This project provides a http client for dotnet to interact with the Figma REST API.
Getting started
Install the Nuget package from nuget.org or github.com
dotnet add package FigmaDotNet
You have to add a config to your application:
{
"Values": {
"FigmaHttpClient": {
"ApiToken": "###",
"RetryAmount": 5, // optional
"TimeoutMinutes": 5 // optional
}
}
}
Check https://help.figma.com/hc/en-us/articles/8085703771159-Manage-personal-access-tokens how to get a personal access token in Figma.
The API token can also be applied via the constructor of the FigmaHttpClient, as well as the retryAmount:
var figmaHttpClient = new FigmaHttpClient(logger, configuration, apiKey: "###", retryAmount: 5);;
Further development topics & missing features
- Not all endpoints are implemented yet.
- Only .Net 9 is supported.
- Missing documentation.
- Rate limit customization in config.
Change log
v1.4.0:
- Added endpoints for Dev Resources.
v1.3.0:
- Added
ServiceCollectionExtensionsto extract http client and made it configurable. - The configuration key
FIGMA_API_TOKENhas changed toFigmaHttpClient:ApiToken. - New configuration key
FigmaHttpClient:TimeoutMinuteswas added to configure http service timeout. Default is 5 minutes.
v1.1.1:
- Extend
FileResponsewithBranchesandDocumentproperties.
v1.1.0:
- Removed property
InternalNamefromFigmaComponent. - Removed property
InternalNamefromWebhookLibraryUpdatePayload.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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.
-
net9.0
- Microsoft.AspNetCore.WebUtilities (>= 9.0.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Http (>= 9.0.0)
- Microsoft.Extensions.Logging (>= 9.0.0)
- Polly (>= 8.5.0)
- System.Configuration.ConfigurationManager (>= 9.0.0)
- System.Text.Encodings.Web (>= 9.0.0)
- System.Threading.RateLimiting (>= 9.0.0)
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 |
|---|---|---|
| 1.4.2 | 300 | 1/16/2025 |
| 1.4.1 | 115 | 1/16/2025 |
| 1.4.0 | 134 | 1/16/2025 |
| 1.3.2 | 108 | 1/9/2025 |
| 1.3.1 | 177 | 1/3/2025 |
| 1.3.0 | 170 | 1/3/2025 |
| 1.2.8 | 134 | 12/20/2024 |
| 1.2.7 | 125 | 12/20/2024 |
| 1.2.6 | 111 | 12/19/2024 |
| 1.2.5 | 118 | 12/19/2024 |
| 1.2.4 | 118 | 12/19/2024 |
| 1.2.3 | 129 | 12/19/2024 |
| 1.2.2 | 110 | 12/19/2024 |
| 1.2.1 | 123 | 12/18/2024 |
| 1.2.0 | 121 | 12/18/2024 |
| 1.1.6 | 119 | 12/18/2024 |
| 1.1.5 | 123 | 12/17/2024 |
| 1.1.4 | 124 | 12/17/2024 |
| 1.1.3 | 138 | 12/17/2024 |
| 1.1.2 | 152 | 12/16/2024 |
| 1.1.1 | 123 | 12/5/2024 |
| 1.1.0 | 149 | 12/5/2024 |
| 1.0.5 | 129 | 12/4/2024 |
| 1.0.4 | 147 | 12/4/2024 |
| 1.0.3 | 151 | 12/4/2024 |
| 1.0.2 | 132 | 12/4/2024 |
| 1.0.1 | 150 | 12/4/2024 |
| 1.0.0 | 135 | 12/4/2024 |