Skip to content

infomofo/go_gilt_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go_gilt_api

GoDoc

go_gilt_api is a simple, transparent Go package for accessing the Gilt API.

Successful API queries return native Go structs that can be used immediately, with no need for type assertions.

Examples

Authentication

You will need a gilt api key which you can get at api.gilt.com and instantiate your client as:

api := go_gilt_api.NewGiltApi("your-api-key")

Endpoints

go_gilt_api will implement the endpoints defined in the api.gilt.com resources For clarity, in most cases, the function name is simply the name of the HTTP method and the endpoint (e.g., the endpoint GET /sales/active is provided by the function GetSalesActive).

Example

	activeSales, err := api.GetSalesActive()
	if err != nil {
		fmt.Errorf("GetSearch yielded error %s", err.Error())
		panic(err)
	}
	for _ , sale := range searchResult {
    fmt.Print(sale.Name)
  }

About

go_gilt_api is a simple Go package for accessing the Gilt API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages