Notification token

Use this (https://sosial.wiltech.my.id//mobile_api/save_pnotif_token) API to access the Notification Token Management Endpoint


Post parameters

Field Value Remarks
session_id ​Access token ID E.g. de25cc16eb00960f076...
token Push notification token E.g. c625cc16eb0096...
type Client device type ios/android (Default is android)

Success response

{
        "code": 200,
        "message": "Notification token saved",
        "data": []
    }
    

Error responses

{
        "code": 401,
        "data":[],
        "message": "Unauthorized Access"
    }

    {
        "code": 400,
        "message": "Incorrect token value",
        "data": []
    }
    

Warning: Unknown: write failed: Disk quota exceeded (122) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/opt/alt/php74/var/lib/php/session) in Unknown on line 0