Retrieve push entry
GET
/show
Retrieve moh server by it's unique ID.
Path parameters
-
access_tokenstring
required
token to be passed as a header -
idinteger
required
The unique ID of push.
Sample Request
curl -v -X GET http://127.0.0.1:8990/api/mobile_push/show \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
Responses
200
Successful operation
application/json
-
android_sender_idstring
android_sender_id. -
ios_crt_filenamestring
ios_crt_filename. -
ios_private_key_filenamestring
ios_private_key_filename. -
enabledboolean
enabled. -
app_namestring
app_name. -
modestring
Push mode: PRODUCTION or DEVELOPMENT. -
android_server_keystring
android_server_key. -
idinteger
app_id.
Sample Response
{}
Destroy push
POST
/destroy
Destroy an push entry.
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
idinteger
required
app_id.
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/mobile_push/destroy \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{}'
Responses
200
Successful operation
400
Invalid tariff ID supplied.
Sample Response
Update push
POST
/update
Update push
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
android_sender_idstring
required
android_sender_id. -
modestring
required
Push mode: PRODUCTION or DEVELOPMENT. -
ios_crt_filenamestring
required
ios_crt_filename. -
ios_private_key_filenamestring
required
ios_private_key_filename. -
enabledboolean
required
enabled. -
app_namestring
required
app_name. -
ios_crt_datastring
required
ios_crt_data. -
android_server_keystring
required
android_server_key. -
ios_private_key_datastring
required
ios_private_key_data. -
idinteger
required
app_id.
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/mobile_push/update \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{}'
Responses
200
Successful operation
Sample Response
Create an push entry.
POST
/create
Add a new push entry into system.
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
modestring
required
Push mode: PRODUCTION or DEVELOPMENT. -
ios_crt_filenamestring
required
ios_crt_filename. -
ios_private_key_filenamestring
required
ios_private_key_filename. -
app_namestring
required
app_name. -
enabledboolean
required
enabled. -
android_sender_idstring
required
android_sender_id. -
ios_crt_datastring
required
ios_crt_data. -
android_server_keystring
required
android_server_key. -
ios_private_key_datastring
required
ios_private_key_data.
Sample Request
curl -v -X POST http://127.0.0.1:8990/api/mobile_push/create \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
-d '{}'
Responses
200
Created push
application/json
-
idinteger
app_id.
Sample Response
{}
Retrieve a collection of push
GET
/list
Retrieve a collection of push
Path parameters
-
access_tokenstring
required
token to be passed as a header -
paginationinteger
required
The pagination of paging. -
pagesizeinteger
required
The size of paging. -
sort_bystring
optional
Values include "DEFAULT" and "Optional". Default value will be used when user does not specify value for this field.
Sample Request
curl -v -X GET http://127.0.0.1:8990/api/mobile_push/list \
-H "Content-Type: application/json" \
-H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
Responses
200
Successful operation
application/json
-
countinteger
-
pushsarray
Show child attributes -
sort_bystring
Sample Response
{
"count": 100,
"sort_by": "DEFAULT"
}