Skip to content

Instantly share code, notes, and snippets.

@zimkies
Created April 17, 2015 17:45
Show Gist options
  • Save zimkies/3620999ff97a19cbd45a to your computer and use it in GitHub Desktop.
Save zimkies/3620999ff97a19cbd45a to your computer and use it in GitHub Desktop.
Attendance endpoint
GET /api/me/attendables
{
attendables: [
# Members Party
{
event_type: "members_party",
attendable_guid: "abcde",
attendable_type: "Party",
initiat: null,
options: [ {
starts_at: 2015-XXXXX,
attendees: []
} ],
copy: {}
},
# Uninitiated Suggested Grouper (omakase)
{
event_type: "suggested_grouper",
attendable_guid: null,
attendable_type: "Crew",
initiate: null,
options: [ {
starts_at: 2015-XXXX
attendees: []
} ],
copy: {}
},
# Targetted Initiated Matched Grouper
{
event_type: "matched_grouper",
attendable_guid: null,
attendable_type: "Crew",
initiate: {
guid: "abcde",
type: "targetted"
},
options: [ {
starts_at: 2015-XXXX
attendees: []
} ],
copy: {}
},
# First Initiated Suggested Grouper
{
event_type: "suggested_grouper",
attendable_guid: null,
attendable_type: "Crew",
initiate:{
guid: "abcde",
type: "first"
},
options: [ {
starts_at: 2015-XXXX
attendees: []
} ],
copy: {}
},
# Card Initiated Suggested Grouper
{
event_type: "suggested_grouper",
attendable_guid: null,
attendable_type: "Crew",
initiate: {
guid: "abcde",
type: "card"
},
options: [ {
starts_at: 2015-XXXX
attendees: []
} ],
copy: {} // Determined by EventType
},
# Invite to friend's grouper
{
event_type: "grouper_as_wing",
attendable_guid: "abcde",
attendable_type: "Crew",
initiate: null,
options: [ {
starts_at: 2015-XXX,
attendees: [ { ...leader... } ]
} ]
} ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment