Skip to content

r0man/ovh-clj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

# ovh-clj

Clojure Library for a tiny part of the OVH Web Services.

http://www.ovh.com/soapi/en/

## Installation

Via Clojars: http://clojars.org/ovh.

## Usage:

(use 'ovh.core)

;; Add a zone entry.

(with-session ["SRXXXXX-OVH" "SECRET"]
   (add-zone-entry "example.com" "api" "CNAME" "ec2-90-27-11-202.compute-1.amazonaws.com"))
;=> {:target "ec2-90-27-11-202.compute-1.amazonaws.com.",
;=>  :subdomain "api",
;=>  :fieldtype "CNAME",
;=>  :class com.ovh.ZoneStruct}

;; Update a zone entry.

(with-session ["SRXXXXX-OVH" "SECRET"]
   (update-zone-entry "example.com" "api" "CNAME" "ec2-60-12-31-104.compute-1.amazonaws.com"))
;=> {:target "ec2-60-12-31-104.compute-1.amazonaws.com.",
;=>  :subdomain "api",
;=>  :fieldtype "CNAME",
;=>  :class com.ovh.ZoneStruct}

;; Delete a zone entry.

(with-session ["SRXXXXX-OVH" "SECRET"]
  (delete-zone-entry "example.com" "api" "CNAME"))
;=> nil

## License

Copyright (C) 2011 Roman Scherer

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

About

A Clojure Library for the OVH Web Services.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published