ticketmaster-discovery-go

command module
v0.0.0-...-20a8fab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2018 License: Apache-2.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

ticketmaster-discovery-go

Client library for Ticketmaster Discovery APIs in Go

Usage:

Grab the package:

go get github.com/ShantanuLaserlike/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))
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Basic Http client for Ticketmaster Discovery Api (http://developer.ticketmaster.com) Usage: discoGateway := disco.NewBuilder().
Basic Http client for Ticketmaster Discovery Api (http://developer.ticketmaster.com) Usage: discoGateway := disco.NewBuilder().

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL