Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull data from Meetup API #4

Open
boek opened this issue Jul 13, 2016 · 0 comments
Open

Pull data from Meetup API #4

boek opened this issue Jul 13, 2016 · 0 comments

Comments

@boek
Copy link
Member

boek commented Jul 13, 2016

We can get the data pretty easily form

https://secure.meetup.com/meetup_api/console/?path=/:urlname/events

We should create a nice component for the home page to get this data.

woolsweater pushed a commit to woolsweater/pdxcocoaheads.com that referenced this issue Aug 4, 2016
…ssing pdx-cocoaheads#4.

Droplet.client makes the request to the Meetup API, which returns a list in
JSON. The JSON is unpacked into instances of `MeetupEvent`. `MeetupEvent`
currently stores just the fields known to be needed for the template, and
implements `MustacheBoxable` so that it can be included directly in the
rendering context.

Created Mustache template and stylesheet for the page, with two filters to
make numerical data look good.

Added link to new page to homepage nav.

Added basic testing for new functionality: Mustache filters and `MeetupEvent`.

Needs further structural refinement: currently too much is done inside the
route handler.
woolsweater pushed a commit to woolsweater/pdxcocoaheads.com that referenced this issue Aug 24, 2016
The "/events" route handler now uses a MeetupAPI object, which makes the
connection to api.meetup.com. The MeetupAPI.getUpcomingEvents() method pulls
down future events.

The events are provided by Meetup.com as a JSON array. The JSON objects are
unpacked into a parallel array of MeetupEvent structs, which is passed back
out to the route handler to be used as the context for the view.

A private Configuration struct supplies MeetupAPI with the appropriate URL
information. It gets the URL pieces from the Config/meetup.json file,
accessing that file via the active Droplet's Config object: the Droplet
aleady knows where the config files are, rather than us having to find them
again. The Droplet's Config is passed in to MeetupAPI on its creation, which
hands it off to its Configuration.
woolsweater pushed a commit to woolsweater/pdxcocoaheads.com that referenced this issue Aug 24, 2016
The "/events" route handler now uses a MeetupAPI object, which makes the
connection to api.meetup.com. The MeetupAPI.getUpcomingEvents() method pulls
down future events.

The events are provided by Meetup.com as a JSON array. The JSON objects are
unpacked into a parallel array of MeetupEvent structs, which is passed back
out to the route handler to be used as the context for the view.

A private Configuration struct supplies MeetupAPI with the appropriate URL
information. It gets the URL pieces from the Config/meetup.json file,
accessing that file via the active Droplet's Config object: the Droplet
aleady knows where the config files are, rather than us having to find them
again. The Droplet's Config is passed in to MeetupAPI on its creation, which
hands it off to its Configuration.
woolsweater pushed a commit to woolsweater/pdxcocoaheads.com that referenced this issue Aug 24, 2016
The "/events" route handler now uses a MeetupAPI object, which makes the
connection to api.meetup.com. The MeetupAPI.getUpcomingEvents() method pulls
down future events.

The events are provided by Meetup.com as a JSON array. The JSON objects are
unpacked into a parallel array of MeetupEvent structs, which is passed back
out to the route handler to be used as the context for the view.

A private Configuration struct supplies MeetupAPI with the appropriate URL
information. It gets the URL pieces from the Config/meetup.json file,
accessing that file via the active Droplet's Config object: the Droplet
aleady knows where the config files are, rather than us having to find them
again. The Droplet's Config is passed in to MeetupAPI on its creation, which
hands it off to its Configuration.
woolsweater pushed a commit to woolsweater/pdxcocoaheads.com that referenced this issue Aug 24, 2016
The "/events" route handler now uses a MeetupAPI object, which makes the
connection to api.meetup.com. The MeetupAPI.getUpcomingEvents() method pulls
down future events.

The events are provided by Meetup.com as a JSON array. The JSON objects are
unpacked into a parallel array of MeetupEvent structs, which is passed back
out to the route handler to be used as the context for the view.

A private Configuration struct supplies MeetupAPI with the appropriate URL
information. It gets the URL pieces from the Config/meetup.json file,
accessing that file via the active Droplet's Config object: the Droplet
aleady knows where the config files are, rather than us having to find them
again. The Droplet's Config is passed in to MeetupAPI on its creation, which
hands it off to its Configuration.
boek added a commit that referenced this issue Sep 20, 2016
Implement #4, "Pull data from Meetup API"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant