Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mvberg/digitalocean-api-java
A Java wrapper around the DigitalOcean API
https://github.com/mvberg/digitalocean-api-java
Last synced: about 2 months ago
JSON representation
A Java wrapper around the DigitalOcean API
- Host: GitHub
- URL: https://github.com/mvberg/digitalocean-api-java
- Owner: mvberg
- Created: 2014-05-08T04:43:55.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-15T17:58:37.000Z (almost 10 years ago)
- Last Synced: 2023-04-04T15:25:34.463Z (almost 2 years ago)
- Language: Java
- Size: 148 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```java
// test getting all DropletsString url = ENDPOINT.replace("COMMAND", "droplets");
url = url.replace("CLIENT_ID", CLIENT_ID);
url = url.replace("API_KEY", API_KEY);final String jsonResponse = fetchString(url);
// parse JSON response
final Droplets droplets = GSON.fromJson(jsonResponse, Droplets.class);
System.out.println("Droplets: query status = " + droplets.getStatus());
System.out.println("Droplets: raw response = " + jsonResponse);```