|
APIAttendees
mixin Event Attendees APIYou have to be authenticated if you want to read, create, update and delete attendees of event for the authentified user. If you are not authenticated you can always read public event attendees. For the moment, only json format is supported. Attendees of event manipulationsRead all attendees of an eventUse GET on: http://www.mixin.com/events/{eventid}/attendees/json/Here is an example on how to get the attendees of an event from a shell: curl -u email_address:password "http://www.mixin.com/events/{eventid}/attendees/json/"
{"attendees": [{"comment": "", "initiator": null, "event_id": eventid, "relation_type_display": "yes", "relation_type": 1, "user": {"username": "ndengler", "screen_name": "ndengler", "id": userid, "url": "\/users\/ndengler\/", "large_icon_url": "\/static\/u\/lg\/default.jpg", "small_icon_url": "\/static\/u\/sm\/default.jpg", "is_guest": 0, "medium_icon_url": "\/static\/u\/md\/default.jpg"}, "last_minievent_id": 0}]}relation_type:
initiator: the user who has invited the attendee (only if relation_type = 3) Read one attendeeUse GET on: http://www.mixin.com/events/{eventid}/attendees/{userid}/json/Return 404 if the user has no relation with the event. Add an attendee to an eventUse the POST HTTP verb if you'd like to add an attendee to an event with this URL: http://www.mixin.com/events/{eventid}/attendees/{userid}/json/Arguments:
Here is an example from a shell: curl -u email_address:password -d 'user=userid' -d 'relation_type=1' "http://www.mixin.com/events/{eventid}/attendees/{userid}/json/"
{"attendees": [{"comment": "", "initiator": null, "event_id": eventid, "relation_type_display": "yes", "relation_type": 1, "user": {"username": "jvisinand", "screen_name": "jvisinand", "url": "\/users\/jvisinand\/", "large_icon_url": "\/static\/u\/lg\/56789.jpg", "small_icon_url": "\/static\/u\/sm\/56789.jpg", "is_guest": 0, "id": userid, "medium_icon_url": "\/static\/u\/md\/56789.jpg"}, "last_minievent_id": 221227}]}Update an attendee on an eventUse the PUT HTTP verb if you'd like to modify an event with this URL: http://www.mixin.com/events/{eventid}/attendees/{userid}/json/Delete an attendee on an eventUse the DELETE HTTP verb if you'd like to delete an attendee: http://www.mixin.com/events/{eventid}/attendees/{userid}/json/Example: curl -u email_address:password -d '_method=DELETE' "http://www.mixin.com/events/{eventid}/attendees/{userid}/json/"
{"infos": "Object successfully deleted."}
|
Sign in to add a comment