Versions in this module Expand all Collapse all v0 v0.2.6 Feb 4, 2023 v0.2.5 Aug 12, 2020 v0.2.4 Jul 7, 2020 v0.2.3 Jul 5, 2020 Changes in this version + const FilterPageNum + const FilterPageSize type Response + MaxPage json.Number + PageNumber json.Number + PageSize json.Number v0.2.2 Jun 27, 2020 v0.2.1 Aug 6, 2018 v0.2.0 Feb 28, 2018 Changes in this version + const ActivityDetailTypeConcert + const ActivityDetailTypeMeeting + const ActivityDetailTypeTheatre + const ActivityDetailTypeTour + const ApiUrl + const ApiVersion + const CruiseDetailTypePortOfCall + const FilterIncludeObjects + const FilterModifiedSince + const FilterNone + const FilterPast + const FilterTraveler + const FilterTripId + const FilterType + const FlightStatusArrivedLate + const FlightStatusArrivedOnTime + const FlightStatusCancelled + const FlightStatusDelayed + const FlightStatusDiverted + const FlightStatusInFlightLate + const FlightStatusInFlightOnTime + const FlightStatusNotMonitorable + const FlightStatusNotMonitored + const FlightStatusOnTime + const FlightStatusScheduled + const ListObject + const ListPointsProgram + const ListTrip + const NoteDetailTypeArticle + const OAUTH_SIGNATURE_METHOD + const OAUTH_VERSION + const ObjectTypeActivity + const ObjectTypeAir + const ObjectTypeCar + const ObjectTypeCruise + const ObjectTypeDirections + const ObjectTypeLodging + const ObjectTypeMap + const ObjectTypeNote + const ObjectTypeRail + const ObjectTypeRestaurant + const ObjectTypeTransport + const ObjectTypeTrip + const TransportDetailTypeFerry + const TransportDetailTypeGroundTransportation + const UrlObtainAccessToken + const UrlObtainRequestToken + const UrlObtainUserAuthorization + const UrlObtainUserAuthorizationMobile + type ActivityObject struct + Address *Address + BookingDate string + BookingRate string + BookingSiteConfNum string + BookingSiteName string + BookingSitePhone string + BookingSiteUrl string + CancellationDateTime *DateTime + DetailTypeCode string + DisplayName string + EndTime string + Id string + Image ImagePtrVector + IsClientTraveler bool + IsPurchased bool + LocationName string + Notes string + Participant TravelerPtrVector + RecordLocator string + RelativeUrl string + Restrictions string + StartDateTime *DateTime + SupplierConfNum string + SupplierContact string + SupplierEmailAddress string + SupplierName string + SupplierPhone string + SupplierUrl string + TotalCost string + TripId string + func (r *ActivityObject) BookingTime() (time.Time, error) + type ActivityObjectPtrVector []*ActivityObject + func (p *ActivityObjectPtrVector) UnmarshalJSON(b []byte) error + type Address struct + Addr1 string + Addr2 string + Address string + City string + Country string + Latitude float64 + Longitude float64 + State string + Zip string + type AirObject struct + BookingDate string + BookingRate string + BookingSiteConfNum string + BookingSiteName string + BookingSitePhone string + BookingSiteUrl string + CancellationDateTime *DateTime + DisplayName string + Id string + Image ImagePtrVector + IsClientTraveler bool + IsPurchased bool + Notes string + RecordLocator string + RelativeUrl string + Restrictions string + Segment AirSegmentPtrVector + SupplierConfNum string + SupplierContact string + SupplierEmailAddress string + SupplierName string + SupplierPhone string + SupplierUrl string + TotalCost string + Traveler TravelerPtrVector + TripId string + func (r *AirObject) BookingTime() (time.Time, error) + type AirObjectPtrVector []*AirObject + func (p *AirObjectPtrVector) UnmarshalJSON(b []byte) error + type AirSegment struct + Aircraft string + AircraftDisplayName string + AlternativeFlightsUrl string + BaggageClaim string + CheckInUrl string + ConflictResolutionUrl string + Distance string + Duration string + EndAirportCode string + EndAirportLatitude float64 + EndAirportLongitude float64 + EndCityName string + EndDateTime *DateTime + EndGate string + EndTerminal string + Entertainment string + Id string + IsHidden bool + MarketingAirline string + MarketingAirlineCode string + MarketingFlightNumber string + Meal string + Notes string + OntimePerc string + OperatingAirline string + OperatingAirlineCode string + OperatingFlightNumber string + Seats string + ServiceClass string + StartAirportCode string + StartAirportLatitude float64 + StartAirportLongitude float64 + StartCityName string + StartDateTime *DateTime + StartGate string + StartTerminal string + Status *FlightStatus + Stops string + type AirSegmentPtrVector []*AirSegment + func (p *AirSegmentPtrVector) UnmarshalJSON(b []byte) error + type Authorizable interface + Authorize func(request *http.Request, args map[string]string) + type CarObject struct + BookingDate string + BookingRate string + BookingSiteConfNum string + BookingSiteName string + BookingSitePhone string + BookingSiteUrl string + CancellationDateTime *DateTime + CarDescription string + CarType string + DisplayName string + Driver TravelerPtrVector + EndDateTime *DateTime + EndLocationAddress *Address + EndLocationHours string + EndLocationName string + EndLocationPhone string + Id string + Image ImagePtrVector + IsClientTraveler bool + IsPurchased bool + MileageCharges string + Notes string + RecordLocator string + RelativeUrl string + Restrictions string + StartDateTime *DateTime + StartLocationAddress *Address + StartLocationHours string + StartLocationName string + StartLocationPhone string + SupplierConfNum string + SupplierContact string + SupplierEmailAddress string + SupplierName string + SupplierPhone string + SupplierUrl string + TotalCost string + TripId string + func (r *CarObject) BookingTime() (time.Time, error) + type CarObjectPtrVector []*CarObject + func (p *CarObjectPtrVector) UnmarshalJSON(b []byte) error + type ClosenessMatch struct + Attributes ClosenessMatchAttributes + type ClosenessMatchAttributes struct + ProfileRef string + type ClosenessMatchVector []ClosenessMatch + func (p *ClosenessMatchVector) UnmarshalJSON(b []byte) error + type ClosenessMatches struct + ClosenessMatch ClosenessMatchVector + type ConnectionRequest struct + type CruiseObject struct + BookingDate string + BookingRate string + BookingSiteConfNum string + BookingSiteName string + BookingSitePhone string + BookingSiteUrl string + CabinNumber string + CabinType string + CancellationDateTime *DateTime + Dining string + DisplayName string + Id string + Image ImagePtrVector + IsClientTraveler bool + IsPurchased bool + Notes string + RecordLocator string + RelativeUrl string + Restrictions string + Segment CruiseSegmentPtrVector + ShipName string + SupplierConfNum string + SupplierContact string + SupplierEmailAddress string + SupplierName string + SupplierPhone string + SupplierUrl string + TotalCost string + Traveler TravelerPtrVector + TripId string + func (r *CruiseObject) BookingTime() (time.Time, error) + type CruiseObjectPtrVector []*CruiseObject + func (p *CruiseObjectPtrVector) UnmarshalJSON(b []byte) error + type CruiseSegment struct + DetailTypeCode string + EndDateTime *DateTime + Id string + LocationAddress *Address + LocationName string + StartDateTime *DateTime + type CruiseSegmentPtrVector []*CruiseSegment + func (p *CruiseSegmentPtrVector) UnmarshalJSON(b []byte) error + type DateTime struct + Date string + Time string + Timezone string + UtcOffset string + func (dt *DateTime) SetTime(t time.Time) + func (dt DateTime) GetTime() (time.Time, error) + type DirectionsObject struct + DateTime *DateTime + DisplayName string + EndAddress *Address + Id string + Image ImagePtrVector + IsClientTraveler bool + RelativeUrl string + StartAddress *Address + TripId string + type DirectionsObjectPtrVector []*DirectionsObject + func (p *DirectionsObjectPtrVector) UnmarshalJSON(b []byte) error + type Error struct + Code int + Description string + DetailedErrorCode float64 + EntityType string + Timestamp string + func (e *Error) Error() string + func (e *Error) String() string + func (e *Error) Time() (time.Time, error) + type ErrorVector []Error + func (p *ErrorVector) UnmarshalJSON(b []byte) error + type FlightStatus struct + ArrivalGate string + ArrivalTerminal string + BaggageClaim string + DepartureGate string + DepartureTerminal string + DivertedAirportCode string + EstimatedArrivalDateTime *DateTime + EstimatedDepartureDateTime *DateTime + FlightStatus int + IsConnectionAtRisk bool + LastModified string + LayoverMinutes string + ScheduledArrivalDateTime *DateTime + ScheduledDepartureDateTime *DateTime + func (fs *FlightStatus) LastModifiedTime() (time.Time, error) + type Group struct + DisplayName string + Url string + type GroupMemberships struct + Group GroupVector + type GroupVector []Group + func (p *GroupVector) UnmarshalJSON(b []byte) error + type Image struct + Caption string + Url string + type ImagePtrVector []*Image + func (p *ImagePtrVector) UnmarshalJSON(b []byte) error + type Invitation struct + ConnectionRequest *ConnectionRequest + EmailAddresses []string + Message string + TripShare *TripShare + type Invitee struct + Attributes InviteeAttributes + IsReadOnly bool + IsTraveler bool + type InviteeAttributes struct + ProfileRef string + type InviteeVector []Invitee + func (p *InviteeVector) UnmarshalJSON(b []byte) error + type LodgingObject struct + Address *Address + BookingDate string + BookingRate string + BookingSiteConfNum string + BookingSiteName string + BookingSitePhone string + BookingSiteUrl string + CancellationDateTime *DateTime + DisplayName string + EndDateTime *DateTime + Guest TravelerPtrVector + Id string + Image ImagePtrVector + IsClientTraveler bool + IsPurchased bool + Notes string + NumberGuests string + NumberRooms string + RecordLocator string + RelativeUrl string + Restrictions string + RoomType string + StartDateTime *DateTime + SupplierConfNum string + SupplierContact string + SupplierEmailAddress string + SupplierName string + SupplierPhone string + SupplierUrl string + TotalCost string + TripId string + func (r *LodgingObject) BookingTime() (time.Time, error) + type LodgingObjectPtrVector []*LodgingObject + func (p *LodgingObjectPtrVector) UnmarshalJSON(b []byte) error + type MapObject struct + Address *Address + DateTime *DateTime + DisplayName string + Id string + Image ImagePtrVector + IsClientTraveler bool + RelativeUrl string + TripId string + type MapObjectPtrVector []*MapObject + func (p *MapObjectPtrVector) UnmarshalJSON(b []byte) error + type NoteObject struct + Address *Address + DateTime *DateTime + DetailTypeCode string + DisplayName string + Id string + Image ImagePtrVector + IsClientTraveler bool + Notes string + RelativeUrl string + Source string + Text string + TripId string + Url string + type NoteObjectPtrVector []*NoteObject + func (p *NoteObjectPtrVector) UnmarshalJSON(b []byte) error + type OAuthConsumerCredential struct + func NewOAuth2LeggedCredential(consumerKey string, consumerSecret string, requestorId string) *OAuthConsumerCredential + func NewOAuth3LeggedCredential(consumerKey string, consumerSecret string, token string, tokenSecret string) *OAuthConsumerCredential + func NewOAuthRequestCredential(consumerKey string, consumerSecret string) *OAuthConsumerCredential + func (a *OAuthConsumerCredential) Authorize(request *http.Request, args map[string]string) + func (a *OAuthConsumerCredential) GetSessionParameters(redirectUrl string, action string) string + func (a *OAuthConsumerCredential) OAuthConsumerKey() string + func (a *OAuthConsumerCredential) OAuthConsumerSecret() string + func (a *OAuthConsumerCredential) OAuthOAuthToken() string + func (a *OAuthConsumerCredential) OAuthRequestorId() string + func (a *OAuthConsumerCredential) OAuthTokenSecret() string + func (a *OAuthConsumerCredential) ValidateSignature(url_ string) bool + type PointsProgram struct + AccountLogin string + AccountNumber string + Activity PointsProgramActivityVector + Balance string + EliteNeedToEarn string + EliteNextStatus string + EliteStatus string + EliteYtdQualify string + ErrorMessage string + Expiration PointsProgramExpirationVector + Id uint + LastModified string + Name string + TotalNumActivities int + TotalNumExpirations int + func (pp *PointsProgram) LastModifiedTime() (time.Time, error) + type PointsProgramActivity struct + Base string + Bonus string + Date string + Description string + Total string + func (pa *PointsProgramActivity) Time() (time.Time, error) + type PointsProgramActivityVector []PointsProgramActivity + func (p *PointsProgramActivityVector) UnmarshalJSON(b []byte) error + type PointsProgramExpiration struct + Amount string + Date string + func (pe *PointsProgramExpiration) Time() (time.Time, error) + type PointsProgramExpirationVector []PointsProgramExpiration + func (p *PointsProgramExpirationVector) UnmarshalJSON(b []byte) error + type PointsProgramVector []PointsProgram + func (p *PointsProgramVector) UnmarshalJSON(b []byte) error + type Profile struct + AboutMeInfo string + ActivityFeedUrl string + AlertsFeedUrl string + Attributes ProfileAttributes + Company string + GroupMemberships *GroupMemberships + HomeCity string + IcalUrl string + IsClient bool + IsPro bool + PhotoUrl string + ProfileEmailAddresses *ProfileEmailAddresses + ProfileUrl string + PublicDisplayName string + ScreenName string + type ProfileAttributes struct + Ref string + type ProfileEmailAddress struct + Address string + IsAutoImport bool + IsConfirmed bool + IsPrimary bool + type ProfileEmailAddressVector []ProfileEmailAddress + func (p *ProfileEmailAddressVector) UnmarshalJSON(b []byte) error + type ProfileEmailAddresses struct + ProfileEmailAddress ProfileEmailAddressVector + type ProfileVector []Profile + func (p *ProfileVector) UnmarshalJSON(b []byte) error + type RailObject struct + BookingDate string + BookingRate string + BookingSiteConfNum string + BookingSiteName string + BookingSitePhone string + BookingSiteUrl string + CancellationDateTime *DateTime + DisplayName string + Id string + Image ImagePtrVector + IsClientTraveler bool + IsPurchased bool + Notes string + RecordLocator string + RelativeUrl string + Restrictions string + Segment RailSegmentPtrVector + SupplierConfNum string + SupplierContact string + SupplierEmailAddress string + SupplierName string + SupplierPhone string + SupplierUrl string + TotalCost string + Traveler TravelerPtrVector + TripId string + func (r *RailObject) BookingTime() (time.Time, error) + type RailObjectPtrVector []*RailObject + func (p *RailObjectPtrVector) UnmarshalJSON(b []byte) error + type RailSegment struct + CarrierName string + CoachNumber string + ConfirmationNum string + EndDateTime *DateTime + EndStationAddress *Address + EndStationName string + Id string + Seats string + ServiceClass string + StartDateTime *DateTime + StartStationAddress *Address + StartStationName string + TrainNumber string + TrainType string + type RailSegmentPtrVector []*RailSegment + func (p *RailSegmentPtrVector) UnmarshalJSON(b []byte) error + type Request struct + ActivityObject *ActivityObject + AirObject *AirObject + CarObject *CarObject + CruiseObject *CruiseObject + DirectionsObject *DirectionsObject + Invitation []Invitation + LodgingObject *LodgingObject + MapObject *MapObject + NoteObject *NoteObject + RailObject *RailObject + RestaurantObject *RestaurantObject + TransportObject *TransportObject + Trip *Trip + type Response struct + ActivityObject ActivityObjectPtrVector + AirObject AirObjectPtrVector + CarObject CarObjectPtrVector + CruiseObject CruiseObjectPtrVector + DirectionsObject DirectionsObjectPtrVector + Error ErrorVector + LodgingObject LodgingObjectPtrVector + MapObject MapObjectPtrVector + NoteObject NoteObjectPtrVector + NumBytes int + PointsProgram PointsProgramVector + Profile ProfileVector + RailObject RailObjectPtrVector + RestaurantObject RestaurantObjectPtrVector + Timestamp string + TransportObject TransportObjectPtrVector + Trip TripPtrVector + Warning WarningVector + WeatherObject WeatherObjectVector + func (r *Response) Time() (time.Time, error) + type RestaurantObject struct + Address *Address + BookingDate string + BookingRate string + BookingSiteConfNum string + BookingSiteName string + BookingSitePhone string + BookingSiteUrl string + CancellationDateTime *DateTime + Cuisine string + DateTime *DateTime + DisplayName string + DressCode string + Hours string + Id string + Image ImagePtrVector + IsClientTraveler bool + IsPurchased bool + Notes string + NumberPatrons string + PriceRange string + RecordLocator string + RelativeUrl string + ReservationHolder *Traveler + Restrictions string + SupplierConfNum string + SupplierContact string + SupplierEmailAddress string + SupplierName string + SupplierPhone string + SupplierUrl string + TotalCost string + TripId string + func (r *RestaurantObject) BookingTime() (time.Time, error) + type RestaurantObjectPtrVector []*RestaurantObject + func (p *RestaurantObjectPtrVector) UnmarshalJSON(b []byte) error + type TransportObject struct + BookingDate string + BookingRate string + BookingSiteConfNum string + BookingSiteName string + BookingSitePhone string + BookingSiteUrl string + CancellationDateTime *DateTime + DisplayName string + Id string + Image ImagePtrVector + IsClientTraveler bool + IsPurchased bool + Notes string + RecordLocator string + RelativeUrl string + Restrictions string + Segment TransportSegmentPtrVector + SupplierConfNum string + SupplierContact string + SupplierEmailAddress string + SupplierName string + SupplierPhone string + SupplierUrl string + TotalCost string + Traveler TravelerPtrVector + TripId string + func (r *TransportObject) BookingTime() (time.Time, error) + type TransportObjectPtrVector []*TransportObject + func (p *TransportObjectPtrVector) UnmarshalJSON(b []byte) error + type TransportSegment struct + CarrierName string + ConfirmationNum string + DetailTypeCode string + EndDateTime *DateTime + EndLocationAddress *Address + EndLocationName string + Id string + NumberPassengers string + StartDateTime *DateTime + StartLocationAddress *Address + StartLocationName string + VehicleDescription string + type TransportSegmentPtrVector []*TransportSegment + func (p *TransportSegmentPtrVector) UnmarshalJSON(b []byte) error + type Traveler struct + FirstName string + FrequentTravelerNum string + FrequentTravelerSupplier string + LastName string + MealPreference string + MiddleName string + SeatPreference string + TicketNum string + type TravelerPtrVector []*Traveler + func (p *TravelerPtrVector) UnmarshalJSON(b []byte) error + type Trip struct + ClosenessMatches *ClosenessMatches + Description string + DisplayName string + EndDate string + Id string + ImageUrl string + IsPrivate bool + PrimaryLocation string + PrimaryLocationAddress *Address + RelativeUrl string + StartDate string + TripCrsRemarks *TripCrsRemarks + TripInvitees *TripInvitees + func (t *Trip) EndTime() (time.Time, error) + func (t *Trip) StartTime() (time.Time, error) + type TripCrsRemark struct + Notes string + RecordLocator string + type TripCrsRemarkVector []TripCrsRemark + func (p *TripCrsRemarkVector) UnmarshalJSON(b []byte) error + type TripCrsRemarks struct + TripCrsRemark TripCrsRemarkVector + type TripInvitees struct + Invitee InviteeVector + type TripIt struct + func New(apiUrl string, apiVersion string, client *http.Client, creds Authorizable) *TripIt + func (t *TripIt) Create(r *Request) (*Response, error) + func (t *TripIt) Delete(objectType string, objectId uint) (*Response, error) + func (t *TripIt) Get(objectType string, objectId uint) (*Response, error) + func (t *TripIt) GetAccessToken() (map[string]string, error) + func (t *TripIt) GetRequestToken() (map[string]string, error) + func (t *TripIt) List(objectType string, filterParms map[string]string) (*Response, error) + func (t *TripIt) Replace(objectType string, objectId uint, r *Request) (*Response, error) + type TripPtrVector []*Trip + func (p *TripPtrVector) UnmarshalJSON(b []byte) error + type TripShare struct + IsReadOnly bool + IsSentWithDetails bool + IsTraveler bool + TripId uint + type Warning struct + Description string + EntityType string + Timestamp string + func (w *Warning) Error() string + func (w *Warning) String() string + func (w *Warning) Time() (time.Time, error) + type WarningVector []Warning + func (p *WarningVector) UnmarshalJSON(b []byte) error + type WeatherObject struct + AvgHighTempC float64 + AvgLowTempC float64 + AvgPrecipitationCm float64 + AvgSnowDepthCm float64 + AvgWindSpeedKn float64 + Date string + DisplayName string + Id string + Image ImagePtrVector + IsClientTraveler bool + Location string + RelativeUrl string + TripId string + func (w *WeatherObject) Time() (time.Time, error) + type WeatherObjectVector []WeatherObject + func (p *WeatherObjectVector) UnmarshalJSON(b []byte) error + type WebAuthCredential struct + func (a *WebAuthCredential) Authorize(request *http.Request, args map[string]string) + func (a *WebAuthCredential) Password() string + func (a *WebAuthCredential) Username() string