register_device
- Inputs
{
"device_details": "string: maximum 128 characters: device_details: optional",
"device_model": "string: 'android' or 'ios'",
"register_id": "string: maximum length is 512 characters: provided by 'GOOGLE' or 'APPLE'",
"version": "string: length between 5 and 12 characters: version :optional"
}
- Errors
{
"device_details": [
{
"max length is 128": "maximum length of device_details is 128"
}
],
"device_model": [
{
"unallowed value ioss": "X not a valid device model"
}
],
"must_login": "user must be login",
"register_id": [
{
"max length is 512": "maximum length of register_id is 512"
}
],
"version": [
{
"min length is 5": "minimum length of version is 5"
},
{
"max length is 12": "maximum length of version is 12"
}
]
}
- Extra Description
Store register_id for user's device in DB in order to send notification and other services provided by smartphone vendors
- Sample
- Url:
- Output:
{
"status": "success",
"time": 1526726826.6275113
}