All Projects → owainlewis → digital-ocean

owainlewis / digital-ocean

Licence: other
Idiomatic Clojure client for Digital Ocean that makes it easy to boot virtual servers from your REPL

Programming Languages

clojure
4091 projects

Projects that are alternatives of or similar to digital-ocean

redash-api-client
Redash API Client written in Python
Stars: ✭ 36 (+5.88%)
Mutual labels:  api-client
FTAPIKit
Declarative and generic REST API framework using Codable.
Stars: ✭ 18 (-47.06%)
Mutual labels:  api-client
restofus
Restofus - a cross-platform (REST) API client.
Stars: ✭ 18 (-47.06%)
Mutual labels:  api-client
CodingWithMitch-Blog-Course
Web development with Django (Python) for Beginners
Stars: ✭ 148 (+335.29%)
Mutual labels:  digital-ocean
airtable
Airtable API Client for Go
Stars: ✭ 25 (-26.47%)
Mutual labels:  api-client
mailerlite-api-python
Python wrapper for Mailerlite API v2
Stars: ✭ 31 (-8.82%)
Mutual labels:  api-client
kdecole-api
Unofficial Node.js API client of Kdecole (Skolengo EMS)
Stars: ✭ 31 (-8.82%)
Mutual labels:  api-client
clients-generator
Kaltura API Client Libraries Generator - PHP source code introspection based automation for API native SDKs generation for various programming languages and API platforms
Stars: ✭ 17 (-50%)
Mutual labels:  api-client
metadata-one-liners
retrive metadata endpoint data with these one liners.
Stars: ✭ 38 (+11.76%)
Mutual labels:  digital-ocean
als typograf
Ruby client for ArtLebedevStudio.RemoteTypograf Web Service.
Stars: ✭ 15 (-55.88%)
Mutual labels:  api-client
echovr api docs
Unofficial documentation for Echo VR's HTTP API
Stars: ✭ 19 (-44.12%)
Mutual labels:  api-client
go-typetalk
go-typetalk is a GO client library for accessing the Typetalk API.
Stars: ✭ 19 (-44.12%)
Mutual labels:  api-client
CryptoCurrency.Net
CryptoCurrency.Net
Stars: ✭ 21 (-38.24%)
Mutual labels:  api-client
tiktok-scraper-php
Tiktok (Musically) PHP scraper
Stars: ✭ 65 (+91.18%)
Mutual labels:  api-client
react-google-sheet
Pulling data from Google Sheets with React components
Stars: ✭ 24 (-29.41%)
Mutual labels:  api-client
jellyfin-apiclient-python
Python API Client for Jellyfin
Stars: ✭ 30 (-11.76%)
Mutual labels:  api-client
pyracing
A complete overhaul of the original ir_webstats; pyracing is an API client/wrapper for iRacing, the leading online simracing service. pyracing handles the queries to iRacing's (known) URL endpoints and maps the returned JSON data into structured objects, allowing for easier access to the data.
Stars: ✭ 52 (+52.94%)
Mutual labels:  api-client
nomisr
Access UK official statistics from the Nomis database through R.
Stars: ✭ 30 (-11.76%)
Mutual labels:  api-client
notionapi-agent
Unofficial Node.js API client for Notion.so
Stars: ✭ 89 (+161.76%)
Mutual labels:  api-client
tesla api
Lightweight Python API client for the Tesla API.
Stars: ✭ 73 (+114.71%)
Mutual labels:  api-client

Digital-ocean

Clojure interface for Digital Ocean

[digitalocean "1.2"]

V2 API

Authentication

You can pass in an OAuth token directly to every function.

You can get a token from your Digital Ocean account user settings.

Getting started

(ns myproject
  (:require [digitalocean.v2.core :as do]))

(defonce token "YOURAUTHTOKEN")

Droplets

Get all droplets

(do/droplets token)

Get a droplet by ID

(do/get-droplet token 123)

Boot up a new droplet. All droplets require an image id to boot from.

Note that certain fields are required. See the Digital Ocean API V2 docs for all params

(do/create-droplet token nil
  {:name "ubuntu-s-1vcpu-2gb-lon1-01"
   :region "lon1"
   :size "s-1vcpu-2gb"
   :image "ubuntu-16-04-x64"
   :tags ["web"]
  })

Delete a droplet by ID

(do/delete-droplet token 123)

Domains

Get all

(do/domains token)

Get one domain by name

(do/get-domain token "fshionable.com")

Domain records

Get records for a domain

(do/records token "fshionable.com")

Images

Get all images

(do/images token)

Keys

;; Get all keys
(do/keys token)

;; Create a new one
(do/create-key token nil {
  :name "Blah"
  :public_key "Blah"})

Regions

Get all regions

(do/regions token)

Sizes

Get all sizes

(do/sizes token)

License

Copyright © 2014 Owain Lewis

Distributed under the Eclipse Public License, the same as Clojure.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].