GithubHelp home page GithubHelp logo

dynect_rest's Introduction

dynect-rest

Interact with the Dynect REST API.

Resource Records

Since this is 90% of what you’ll be doing, we make it easy.

require 'dynect_rest'
dyn = DynectRest.new("CUSTOMER", "USERNAME", "PASSWORD", "ZONE")
dyn.a.fqdn("sunshine.example.com").ttl(3600).address("192.168.1.1").save
dyn.cname.fqdn("something.example.com").cname("ec2-10-10-10-10.amazonaws.com").save
dyn.publish

Will add an A record and a CNAME. You can use the chained method syntax for every resource record - we map unknown methods to the resource data you make in the call. See link:“example.rb” for an executable example using environment variables.

Everything else

We wrap up the lower-level functionality of the API, so you can focus on just making the calls. For example, to get a list of contacts:

dyn = DynectRest.new("CUSTOMER", "USERNAME", "PASSWORD", "ZONE")
dyn.get('Contact')

To create a new contact:

dyn = DynectRest.new("CUSTOMER", "USERNAME", "PASSWORD", "ZONE")
dyn.post('Contact', { "first_name" => "Bobo", "last_name" => "Clown", "organization" => 'The Circus', "email" => "[email protected]" })

Use the API docs

For more - you should be able to find the latest at:

https://manage.dynect.net/help/docs/api2/rest/resources/

If you are a Dynect customer.

Note on Patches/Pull Requests

  • Fork the project.

  • Make your feature addition or bug fix.

  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)

  • Send me a pull request. Bonus points for topic branches.

Copyright © 2010 Opscode, Inc. See LICENSE for details.

dynect_rest's People

Contributors

adamhjk avatar fairchild avatar technicalpickles avatar blentz avatar bgentry avatar jbarratt avatar mikehale avatar cwholt avatar pwolanin avatar

Watchers

Marc Seeger avatar Amin Astaneh avatar  avatar William Van Hevelingen avatar Al Steffen avatar Barry Jaspan avatar Ezra Gildesgame avatar Dan Vine avatar Jen Norris avatar Jakob Perry avatar Nik Gregory avatar Jay Batson avatar Tim Hilliard avatar Peter Drake avatar James Cloos avatar Justin Porterfield avatar Roland Sugars avatar  avatar Griffon Buckner avatar  avatar Peter Jackson avatar Stacy Watts avatar  avatar Pim van der Wal avatar  avatar  avatar  avatar  avatar Nick DelRossi avatar  avatar  avatar Rich Razumny avatar jimM avatar  avatar Basia Sudol avatar Manoj Bhusal avatar Kamiren Dawkins avatar Akin avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.