Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 4 days 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 (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-11-10T03:24:47.000Z (about 1 year ago)
- Last Synced: 2024-11-09T12:50:03.662Z (5 days ago)
- Topics: digitalocean, digitalocean-api, dotnet
- Language: C#
- Homepage:
- Size: 800 KB
- Stars: 126
- Watchers: 14
- Forks: 49
- Open Issues: 11
-
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.