Skip to content

thijsdev/dme-go-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dme-go-client

This repository contains the golang client SDK to interact with DNS Made Easy Platform using REST API calls. This SDK is used by terraform-provider-dme.

Installation

Use go get to retrieve the SDK to add it to your GOPATH workspace, or project's Go module dependencies.

$go get github.com/DNSMadeEasy/dme-go-client

There are no additional dependancies needed to be installed.

Overview

  • client :- This package contains the HTTP Client configuration as well as service methods which serves the CRUD operations on the DNS Objects in DNSMadeEasy platform.

  • models :- This package contains all the models structs and utility methods for the same.

How to Use

import the client in your go application and retrive the client object by calling client.GetClient() method.

import github.com/DNSMadeEasy/dme-go-client/client
client.GetClient("apikey", "secretkey", client.Insecure(true/false))

Use that client object to call the service methods to perform the CRUD operations on the model objects.

Example,

    client.Save(obj<type interface>,endpoint<type string>)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%