meetup

package
v0.0.0-...-6f16c62 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a client for communicating with the Meetup.com v3 API.

func NewClient

func NewClient(c *http.Client, apiKey string) *Client

NewClient creates a new Meetup.com v3 API client.

func (*Client) Comments

func (c *Client) Comments(groupName, eventID string) ([]*Comment, error)

Comments returns the list of comments of an event.

func (*Client) Events

func (c *Client) Events(groupName string, status *string) ([]*Event, error)

Events returns the listing of all Meetup Events hosted by a target group.

func (*Client) Group

func (c *Client) Group(groupName string) (*Group, error)

Group returns a Meetup group.

func (*Client) RSVPs

func (c *Client) RSVPs(groupName, eventID string, response *string) ([]*RSVP, error)

RSVPs return the list of RSVP of an event.

type Comment

type Comment struct {
	ID        int    `json:"id"`
	Comment   string `json:"comment"`
	Link      string `json:"link"`
	Created   int64  `json:"created"`
	LikeCount int    `json:"like_count"`
	Member    Member `json:"member"`
}

Comment represents a commend in any Meetup.com group or event.

type Event

type Event struct {
	ID            string `json:"id"`
	Name          string `json:"name"`
	Created       int64  `json:"created"`
	Duration      int    `json:"duration"`
	RsvpLimit     int    `json:"rsvp_limit"`
	Status        string `json:"status"`
	Time          int64  `json:"time"`
	LocalDate     string `json:"local_date"`
	LocalTime     string `json:"local_time"`
	Updated       int64  `json:"updated"`
	UtcOffset     int    `json:"utc_offset"`
	WaitlistCount int    `json:"waitlist_count"`
	YesRsvpCount  int    `json:"yes_rsvp_count"`
	Venue         Venue  `json:"venue"`
	Group         Group  `json:"group"`
	Link          string `json:"link"`
	Description   string `json:"description"`
	Visibility    string `json:"visibility"`
}

Event represents a Meetup.com event.

type EventContext

type EventContext struct {
	Host bool `json:"host"`
}

EventContext contains info about the relation between a Meetup.com event and a member who rspv'ed.

type Group

type Group struct {
	ID                int     `json:"id"`
	Name              string  `json:"name"`
	Created           int64   `json:"created"`
	JoinMode          string  `json:"join_mode"`
	Lat               float64 `json:"lat"`
	Lon               float64 `json:"lon"`
	Urlname           string  `json:"urlname"`
	Who               string  `json:"who"`
	LocalizedLocation string  `json:"localized_location"`
	State             string  `json:"state"`
	Country           string  `json:"country"`
	Region            string  `json:"region"`
	Timezone          string  `json:"timezone"`
}

Group represents a Meetup.com group.

type Member

type Member struct {
	ID           int          `json:"id"`
	Name         string       `json:"name"`
	EventContext EventContext `json:"event_context"`
}

Member represents a member from a Meetup.com group.

type RSVP

type RSVP struct {
	Created  int64  `json:"created"`
	Updated  int64  `json:"updated"`
	Response string `json:"response"`
	Guests   int    `json:"guests"`
	Member   Member `json:"member"`
}

RSVP represents a rsvp in a Meetup.com event.

type Venue

type Venue struct {
	ID                   int     `json:"id"`
	Name                 string  `json:"name"`
	Lat                  float64 `json:"lat"`
	Lon                  float64 `json:"lon"`
	Repinned             bool    `json:"repinned"`
	Address              string  `json:"address_1"`
	City                 string  `json:"city"`
	Country              string  `json:"country"`
	LocalizedCountryName string  `json:"localized_country_name"`
}

Venue represents a Meetup.com venue.

Jump to

Keyboard shortcuts

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