Skip to content

patjackson52/ticketmaster-discovery-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ticketmaster-discovery-go

Client library for Ticketmaster Discovery APIs in Go

Usage:

Grab the package:

go get github.com/patjackson52/ticketmaster-discovery-go/disco

Create a DiscoveryGateway instance with the builder, then fetch results with SearchEvents()


import (
	"log"
	"github.com/patjackson52/ticketmaster-discovery-go/disco"
)

func main() {
	discoGateway := disco.NewBuilder().
		ApiKey("{my key}").
		Logging(true).
		Build()

	params := map[string]string{disco.KEYWORD: "Bruno mars"}
	results, err := discoGateway.SearchEvents(params)

	if err != nil {
		log.Println(err.Error())
	}

	log.Println(results)
	log.Println(len(results.EmbeddedEvents.Events))
}

About

Client library for Ticketmaster Discovery APIs in Go

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages