You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This function can be extended to handle ingesting event and group data to our database, mapping to the models created in #1.
Use the following mapping from the event object returned (make sure to handle nulls properly. Check API docs to see what will always vs not always be mapped). All properties are returned assuming the object is called event:
id (uuid) - NOT MAPPED, generated by us
created (datetime) - NOT MAPPED, set when the object is created in our db
source (string - enum) [MEETUP, EVENTBRITE] - All events pulled from meetups will have the value MEETUP here.
name (string) <- event.name
description (string - blob) <- event.description
url (string) <- event.event_url
photoUrl (string) <- event.photo_url
sourceId (string) <- event.id
time (datetime) <- generate this from event.time
timeLocal (string) <- generate this from our time property and event.utc_offset
country (string) <- event.venue.country
city (string) <- event.venue.city
lat (number, best format for latitude in sequelize) - event.venue.lon
lon (number, best format for longitude in sequelize) - event.venue.lat
group (foreign key to group) - depending on if a group is created, we will set this
Note that multiple events can be sent for an event with a given sourceId, so make sure not to create an extra copy if there is an existing event with that sourceId in the database.
Additionally, if the object from the API has a group contained, check if a group exists in the database with that ID. if it does not, persist a group model to the DB.
id (uuid) - NOT MAPPED, generated by us
created (datetime) - NOT MAPPED, set when the object is created in our DB
source (string - enum) [MEETUP, EVENTBRITE] - Set to MEETUP
Integrate the Open Events streaming API on meetup to pull events to the demo application. This SDK handles it using the Open Events Stream Method:
This function can be extended to handle ingesting event and group data to our database, mapping to the models created in #1.
Use the following mapping from the event object returned (make sure to handle nulls properly. Check API docs to see what will always vs not always be mapped). All properties are returned assuming the object is called event:
MEETUP
here.event.name
event.description
event.event_url
event.photo_url
event.id
event.time
time
property andevent.utc_offset
event.venue.country
event.venue.city
event.venue.lon
event.venue.lat
Note that multiple events can be sent for an event with a given
sourceId
, so make sure not to create an extra copy if there is an existing event with thatsourceId
in the database.Additionally, if the object from the API has a
group
contained, check if a group exists in the database with that ID. if it does not, persist agroup
model to the DB.MEETUP
event.group.name
event.group.urlname
event.group.group_photo.thumb_link
event.group.id
The text was updated successfully, but these errors were encountered: