My favorites | Sign in
Project Logo
          
Search
for
Updated Sep 09, 2008 by jvisinand
APIMediasComments  

mixin Medias, Comments and Events API

You have to be authenticated if you want to read, create, update and delete medias on an event for the authentified user. If you are not authenticated you can always read medias and comments on public event. For the moment, only json format is supported. Medias and Comments share the same API.

Event's medias and comments manipulations

Read all medias and comments of an event

Use GET on:

http://www.mixin.com/events/{eventid}/medias/json/

Here is an example on how to get the medias and comment of an event from a shell:

curl -u email_address:password "http://www.mixin.com/events/{eventid}/medias/json/"
{"medias": [
  {"full_img_url": "\/static\/img\/2008\/09\/08\/full\/3we9spasz8hd618chmhb_05072008509.jpg", "text": "05072008509.jpg", "secret_id": "3we9spasz8hd618chmhb", "video_file_url": "\/static\/", "creation_date": "2008-09-08 20:27:40",
    "owner": {...},
  "service_source": 0, "medium_sq_img_url": "\/static\/img\/2008\/09\/08\/mdsq\/3we9spasz8hd618chmhb_05072008509.jpg", "last_modification_date": "2008-09-08 20:27:41", "type": 2, "id": 77455, "small_sq_img_url": "\/static\/img\/2008\/09\/08\/smsq\/3we9spasz8hd618chmhb_05072008509.jpg", "audio_file_url": "\/static\/"}, 
  {"full_img_url": null, "text": "I don't know yet", "secret_id": "u101ssytbkut8wxpwtak", "video_file_url": "\/static\/", "creation_date": "2008-09-08 20:23:40",
    "owner": {...},
  "service_source": 0, "medium_sq_img_url": null, "last_modification_date": "2008-09-08 20:23:40", "type": 4, "id": 77454, "small_sq_img_url": null, "audio_file_url": "\/static\/"}
]}

id: The media id

type:

small_sq_img_url: The url of the 75x75 px image (valid for image type only)

medium_sq_img_url: The url of the 200x200 px image (valid for image type only)

full_img_url: The url of the 500 px image (valid for image type only)

video_file_url: The url of the video file (valid for video type only)

audio_file_url: The url of the audio file (valid for video type only)

service_source:

secret_id: medias are accessible via events urls /events/{eventid}/medias/json/ and media urls /medias/{mediaid}/{secretid}/. If you access them via the media url, you need the secret_id

creation_date: Creation date in UTC

last_modification_date: Last modification date in UTC

date_taken: The date the picture was taken if available in UTC (valid for image type only)

Add a media to an event

Use the POST HTTP verb if you'd like to add a media to an event with this URL:

http://www.mixin.com/events/{eventid}/medias/json/

Arguments:

Here is an example on how to post a comment from a shell:

curl -u email_address:password -d 'text=a comment' "http://www.mixin.com/events/{eventid}/medias/json/"
{"medias":
  [{"full_img_url": null, "text": "a comment", "secret_id": "fd9ehctcmbj1qn2b0ujm", "video_file_url": "\/static\/", "creation_date": "2008-09-09 09:03:30",
    "owner": {...}, "service_source": 0, "medium_sq_img_url": null, "last_modification_date": "2008-09-09 09:03:30", "type": 4, "id": 77456, "small_sq_img_url": null, "audio_file_url": "\/static\/"}]
}

Remove media

Use the DELETE HTTP verb if you'd like to delete a media:

http://www.mixin.com/events/{eventid}/medias/{mediaid}/{secretid}/json/

Here is an example on how to delete a media from a shell:

curl -u email_address:password -d '_method=DELETE' "http://www.mixin.com/events/{eventid}/medias/{mediaid}/{secretid}/json/"
{"infos": "Object successfully deleted."}

Sign in to add a comment
Hosted by Google Code