Documentation ¶
Index ¶
- func Events(filter string, token string, c *Config, debug bool) (int, error)
- func GetEnvStr(name, def string) (res string)
- func Listings(filter string, token string, c *Config, debug bool) (int, error)
- func ObtainToken(config *Config, userAPI, debug bool) (string, error)
- func RefreshToken(config *Config, debug bool) (string, error)
- func SerCookies(f string, context string, cookies Cookies, config *Config) error
- type AncestorsJSON
- type AttributeJSON
- type Config
- type Context
- type Contexts
- type Cookie
- type Cookies
- type DisplayAttributesJSON
- type Env
- type EventsJSON
- type ImageJSON
- type ListingErrorJSON
- type ListingJSON
- type ListingsErrorJSON
- type ListingsErrorsJSON
- type ListingsJSON
- type ListingsResponseJSON
- type LoginErrorJSON
- type LoginJSON
- type MobileAttributesJSON
- type PointJSON
- type PriceJSON
- type PropertyExJSON
- type SearchErrorJSON
- type SearchJSON
- type StubhubTime
- type VenueConfigurationJSON
- type VenueJSON
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ObtainToken ¶
ObtainToken ... https://developer.stubhub.com/store/site/pages/guides.jag?type=developersguide
func RefreshToken ¶
RefreshToken ... https://developer.stubhub.com/store/site/pages/doc-tutorials.jag
Types ¶
type AncestorsJSON ¶
type AncestorsJSON struct { Categories []PropertyExJSON `json:"categories"` Groupings []PropertyExJSON `json:"groupings"` Performers []PropertyExJSON `json:"performers"` Geos []PropertyExJSON `json:"geos"` }
AncestorsJSON ...
type AttributeJSON ¶
AttributeJSON ...
type Config ¶
type Config struct { AccessToken string ApplicationToken string CustomerKey string CustomerSecret string ExpiresIn int Password string RefreshToken string Scope string Server string TokenType string UserName string UserID string }
Config ...
type Context ¶
type Context struct { ApplicationToken string `yaml:"application_token"` CustomerKey string `yaml:"customer_key"` CustomerSecret string `yaml:"customer_secret"` Password string `yaml:"password"` Scope string `yaml:"scope"` Server string `yaml:"server"` UserName string `yaml:"user_name"` }
Context ...
type Cookie ¶
type Cookie struct { AccessToken string `yaml:"access_token"` ExpiresIn int `yaml:"expires_in"` RefreshToken string `yaml:"refresh_token"` TokenType string `yaml:"token_type"` UserID string `yaml:"X-Stubhub-User-Guid"` }
Cookie ...
type DisplayAttributesJSON ¶
type DisplayAttributesJSON struct { IsHidden bool `json:"isHidden"` HideEventDate bool `json:"hideEventDate"` HideEventTime bool `json:"hideEventTime"` PrimaryName string `json:"primaryName"` }
DisplayAttributesJSON ...
type Env ¶
type Env struct { ApplicationToken string CustomerKey string CustomerSecret string Password string UserName string }
Env ...
type EventsJSON ¶
type EventsJSON struct { ID int `json:"id"` Status string `json:"status"` Locale string `json:"locale"` Name string `json:"name"` OriginalName string `json:"originalName"` Description string `json:"description"` EventURL string `json:"eventUrl"` WebURI string `json:"webURI"` SeoURI string `json:"seoURI"` EventDateLocal StubhubTime `json:"eventDateLocal"` DateOnsale StubhubTime `json:"dateOnsale"` EventDateUTC StubhubTime `json:"eventDateUTC"` Venue VenueJSON `json:"venue"` VenueConfiguration VenueConfigurationJSON `json:"venueConfiguration"` BobID int `json:"bobId"` Ancestors AncestorsJSON `json:"ancestors"` SourceID string `json:"sourceId"` Categories []PropertyExJSON `json:"categories"` Groupings []PropertyExJSON `json:"groupings"` Performers []PropertyExJSON `json:"performers"` Geos []PropertyExJSON `json:"geos"` CategoriesCollection []PropertyExJSON `json:"categoriesCollection"` GroupingsCollection []PropertyExJSON `json:"groupingsCollection"` PerformersCollection []PropertyExJSON `json:"performersCollection"` ImageURL string `json:"imageUrl"` Images []ImageJSON `json:"images"` Attributes []AttributeJSON `json:"attributes"` DisplayAttributes DisplayAttributesJSON `json:"displayAttributes"` MobileAttributes MobileAttributesJSON `json:"mobileAttributes"` Score float32 `json:"score"` CreatedDate StubhubTime `json:"createdDate"` DefaultLocale string `json:"defaultLocale"` }
EventsJSON ...
type ImageJSON ¶
type ImageJSON struct { URL string `json:"url"` IsResizable bool `json:"isResizable"` URLSSL string `json:"urlSsl"` Height int `json:"height"` Width int `json:"width"` Source string `json:"source"` Credit string `json:"credit"` }
ImageJSON ...
type ListingErrorJSON ¶
type ListingErrorJSON struct { Type string `json:"type"` Code string `json:"code"` Message string `json:"message"` Parameter string `json:"parameter"` }
ListingErrorJSON ...
type ListingJSON ¶
type ListingJSON struct { ID string `json:"id"` Status string `json:"status"` EventID string `json:"eventId"` EventDescription string `json:"eventDescription"` EventDate StubhubTime `json:"eventDate"` InHandDate StubhubTime `json:"inhandDate"` Quantity int `json:"quantity"` QuantityRemain int `json:"quantityRemain"` Section string `json:"section"` Rows string `json:"rows"` Seats string `json:"seats"` VenueDescription string `json:"venueDescription"` SplitOption string `json:"splitOption"` SplitQuantity int `json:"splitQuantity"` DeliveryOption string `json:"deliveryOption"` PreDelivered string `json:"preDelivered"` SaleEndDate StubhubTime `json:"saleEndDate"` SaleMethod string `json:"saleMethod"` PricePerTicket PriceJSON `json:"pricePerTicket"` PayoutPerTicket PriceJSON `json:"payoutPerTicket"` DisplayPricePerTicket PriceJSON `json:"displayPricePerTicket"` PaymentType string `json:"paymentType"` }
ListingJSON ...
type ListingsErrorJSON ¶
type ListingsErrorJSON struct {
Listings ListingsErrorsJSON `json:"listings"`
}
ListingsErrorJSON ...
type ListingsErrorsJSON ¶
type ListingsErrorsJSON struct { Errors []ListingErrorJSON `json:"errors"` NumFound int `json:"numFound"` }
ListingsErrorsJSON ...
type ListingsJSON ¶
type ListingsJSON struct { NumFound int `json:"numFound"` Listings []ListingJSON `json:"listing"` }
ListingsJSON ...
type ListingsResponseJSON ¶
type ListingsResponseJSON struct {
Listings ListingsJSON `json:"listings"`
}
ListingsResponseJSON ...
type LoginErrorJSON ¶
type LoginErrorJSON struct { Error string `json:"error"` ErrorDescription string `json:"error_description"` }
LoginErrorJSON ...
type LoginJSON ¶
type LoginJSON struct { AccessToken string `json:"access_token"` ExpiresIn int `json:"expires_in"` RefreshToken string `json:"refresh_token"` TokenType string `json:"token_type"` }
LoginJSON ...
type MobileAttributesJSON ¶
type MobileAttributesJSON struct { EnableApplePassbook bool `json:"enableApplePassbook"` MobileListingNotAllowed bool `json:"mobileListingNotAllowed"` StubhubMobileTicket bool `json:"stubhubMobileTicket"` }
MobileAttributesJSON ...
type PropertyExJSON ¶
type PropertyExJSON struct { ID int `json:"id"` Name string `json:"name"` URL string `json:"url"` WebURI string `json:"webURI"` SeoURI string `json:"seoURI"` }
PropertyExJSON ...
type SearchErrorJSON ¶
type SearchErrorJSON struct { Code string `json:"code"` Description string `json:"description"` RequestID string `json:"requestId"` Data []PointJSON `json:"data"` ValidationErrors string `json:"validationErrors"` }
SearchErrorJSON ...
type SearchJSON ¶
type SearchJSON struct { NumFound int `json:"numFound"` Events []EventsJSON `json:"events"` }
SearchJSON ...
type StubhubTime ¶
StubhubTime ...
func (*StubhubTime) UnmarshalJSON ¶
func (stubhubTime *StubhubTime) UnmarshalJSON(b []byte) (err error)
UnmarshalJSON ...
type VenueConfigurationJSON ¶
VenueConfigurationJSON ...
type VenueJSON ¶
type VenueJSON struct { ID int `json:"id"` Name string `json:"name"` URL string `json:"url"` WebURI string `json:"webURI"` SeoURI string `json:"seoURI"` VenueURL string `json:"venueUrl"` Latitude float32 `json:"latitude"` Longitude float32 `json:"longitude"` Timezone string `json:"timezone"` JdkTimezone string `json:"jdkTimezone"` Address1 string `json:"address1"` City string `json:"city"` State string `json:"state"` PostalCode string `json:"postalCode"` Country string `json:"country"` VenueConfigID int `json:"venueConfigId"` }
VenueJSON ...
Click to show internal directories.
Click to hide internal directories.