Home > ovh-clj

ovh-clj

Ovh-clj is a project mainly written in JAVA and CLOJURE, it's free.

A Clojure Library for the OVH Web Services.

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.

Previous:SimpleServer