Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Parameter

Type

Description

key

String

device token (for apple) or registration id (for android)

type

Integer

30 - Apple Push Notification

40 - Google Cloud Messaging

Response

...

Parameter

Type

Description

type

Integer

(empty) - get all type of endpoints for current user

30 - Apple Push Notification

40 - Google Cloud Messaging

Response

...

Parameter

Type

Description

type

Integer

(empty) - get all type of endpoints for current user

30 - Apple Push Notification

40 - Google Cloud Messaging

Response

...

Code Block
curl -X GET \
  -H "X-ApiToken: 6366a7018a39536a1ef4b63626f8e734" \
  https://api.vsee.me/api_v3/notifications.json

{
  "data": [
    {
      "id": "570f3f04-f1f4-4805-946e-178d50e631f8",
      "user_id": "201",
      "type": "foodlog.comment",
      "time": "1460616964",
      "mtime": 14606169641000,
      "is_new": false,
      "read": false,
      "title": "Johnathon Lavon (401) commented on a photo",
      "image": "http://portalapi.fruitstreetvsee.devme/files/index/food/photo/1/250x250?auth_code=b9b6746928de9450db3c1265d2d90edf83c14688",
      "data": {
        "food_id": "1",
        "food_comment_id": "1"
      }
    }
  ]
}

...

Code Block
curl -X PUT \
  -H "X-ApiToken: 6366a7018a39536a1ef4b63626f8e734" \
  https://api.vsee.me/api_v3/notifications/570f3f04-f1f4-4805-946e-178d50e631f8

{
  "data": {
      "id": "570f3f04-f1f4-4805-946e-178d50e631f8",
      "user_id": "201",
      "type": "foodlog.comment",
      "time": 1460616964,
      "mtime": 14606169641000,
      "is_new": false,
      "read": true,
      "title": "Johnathon Lavon (401) commented on a photo",
      "image": "http://portalapi.fruitstreetvsee.devme/files/index/food/photo/1/250x250?auth_code=b9b6746928de9450db3c1265d2d90edf83c14688",
      "data": {
        "food_id": "1",
        "food_comment_id": "1"
      }
  }
}

...