https://github.com/trmcnvn/digitalocean.api
:whale2: .NET implementation of the DigitalOcean API
https://github.com/trmcnvn/digitalocean.api
digitalocean digitalocean-api dotnet
Last synced: 3 months ago
JSON representation
:whale2: .NET implementation of the DigitalOcean API
- Host: GitHub
- URL: https://github.com/trmcnvn/digitalocean.api
- Owner: trmcnvn
- License: mit
- Created: 2014-05-06T19:42:03.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2023-11-10T03:24:47.000Z (over 1 year ago)
- Last Synced: 2025-03-28T15:09:19.588Z (3 months ago)
- Topics: digitalocean, digitalocean-api, dotnet
- Language: C#
- Homepage:
- Size: 800 KB
- Stars: 127
- Watchers: 13
- Forks: 51
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
![]()
DigitalOcean API
Implementation of the [DigitalOcean API (v2)](https://developers.digitalocean.com/documentation/v2/#introduction) for .NET Standard 2+
## Install
DigitalOcean.API is available for install from [NuGet](https://www.nuget.org/packages/DigitalOcean.API) and the [GitHub Package Registry](https://github.com/trmcnvn/DigitalOcean.API/packages).
```
dotnet add package DigitalOcean.API
```## Example
```csharp
var client = new DigitalOceanClient("api_token");var request = new Droplet {
Name = "example.com",
Region = "nyc3",
Size = "s-1vcpu-1gb",
Image = "ubuntu-16-04-x64",
SshKeys = new List { 107149 },
Backups = false,
Ipv6 = true,
Tags = new List { "web" }
};var droplet = await client.Droplets.Create(request);
```## Documentation
Check out [DigitalOcean's documentation](https://developers.digitalocean.com/documentation/v2/#introduction) of their API to see all possible interactions.
## License
This project is licensed under the MIT License - see the LICENSE.md file for details.