voice-api
< back to +main 

kaya app

http://api.traffy.xyz/api-token-auth/
http://api.traffy.xyz/v0/kaya/
http://api.traffy.xyz/v0/kaya-trash/
http://api.traffy.xyz/v0/attachment/
หลักๆ ก็ใช้ /kaya/ ส่วน /attachment/ มันเป็นแค่รูปซึ่งสามารถแก้ note เพิ่ม viewed ได้ ตอนแรก

kaya

หน้าตาจะประมาณนี้
{
  "count": 1,
  "next": null,
  "previous": null,
  "results": [
    {
      "id": 1,
      "photos": [
        {
          "id": 1,
          "photo": "https://traffy-mk2.s3.amazonaws.com/attachment/2016-10/sipp11-1477359482.62.png?Signature=BcliZc%2BKRzH7NlGvOt5WUabQFUQ%3D&Expires=1477363461&AWSAccessKeyId=AKIAJPXFKK5X7KUB5HNA",
          "thumbnail": {
            "lg": "https://traffy-mk2.s3.amazonaws.com/_s_/attachment/2016-10/sipp11-1477359482.62-crop-c0-5__0-5-1024x768.png?Signature=OfcE7owtcHXjk1F9HlrZIuynMzA%3D&Expires=1477363461&AWSAccessKeyId=AKIAJPXFKK5X7KUB5HNA",
            "sm": "https://traffy-mk2.s3.amazonaws.com/_s_/attachment/2016-10/sipp11-1477359482.62-crop-c0-5__0-5-320x240.png?Signature=iCJjPf272E3QLKjdJMLtqGuoa%2Fc%3D&Expires=1477363462&AWSAccessKeyId=AKIAJPXFKK5X7KUB5HNA",
            "nn": "https://traffy-mk2.s3.amazonaws.com/_s_/attachment/2016-10/sipp11-1477359482.62-crop-c0-5__0-5-180x180.png?Signature=wCTqDbreQpRUhomLCCs98AAnqgY%3D&Expires=1477363462&AWSAccessKeyId=AKIAJPXFKK5X7KUB5HNA",
            "md": "https://traffy-mk2.s3.amazonaws.com/_s_/attachment/2016-10/sipp11-1477359482.62-crop-c0-5__0-5-640x480.png?Signature=AV5S6HvWKSfLnjLC9CuXjGwDncI%3D&Expires=1477363462&AWSAccessKeyId=AKIAJPXFKK5X7KUB5HNA"
          },
          "note": "testing with new app",
          "viewed": 2,
          "ppoi": "(0.5, 0.5)",
          "updated_on": "2016-10-25T01:39:52.320205Z",
          "user": 1
        }
      ],
      "coords": [
        100,
        13.88
      ],
      "problem_type": "pickup_request",
      "address": "",
      "post_number": "",
      "status": "",
      "comment": "",
      "like": 0,
      "name": "sipp11",
      "facebook_id": "",
      "timestamp": "2016-10-25T01:38:02.567203Z",
      "inprogress_timestamp": null,