Destroy push
POST
/destroy
Destroy an push entry.
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
idstring
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
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 -
idstring
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
-
ios_crt_filenamestring
ios_crt_filename. -
enabledboolean
enabled. -
app_namestring
app_name. -
android_sender_idstring
android_sender_id. -
ios_private_key_filenamestring
ios_private_key_filename. -
idstring
app_id. -
modestring
Push mode: PRODUCTION or DEVELOPMENT. -
android_server_keystring
android_server_key.
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
-
sort_bystring
-
pushsarray
Show child attributes -
countinteger
Sample Response
{
"sort_by": "DEFAULT",
"count": 100
}
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
-
ios_crt_filenamestring
required
ios_crt_filename. -
android_server_keystring
required
android_server_key. -
enabledboolean
required
enabled. -
app_namestring
required
app_name. -
android_sender_idstring
required
android_sender_id. -
ios_private_key_filenamestring
required
ios_private_key_filename. -
ios_private_key_datastring
required
ios_private_key_data. -
ios_crt_datastring
required
ios_crt_data. -
modestring
required
Push mode: PRODUCTION or DEVELOPMENT.
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
-
idstring
app_id.
Sample Response
{}
Update push
POST
/update
Update push
Path parameters
-
access_tokenstring
required
token to be passed as a header
Request body
application/json
-
ios_crt_filenamestring
required
ios_crt_filename. -
android_server_keystring
required
android_server_key. -
enabledboolean
required
enabled. -
app_namestring
required
app_name. -
android_sender_idstring
required
android_sender_id. -
ios_private_key_filenamestring
required
ios_private_key_filename. -
idstring
required
app_id. -
ios_private_key_datastring
required
ios_private_key_data. -
ios_crt_datastring
required
ios_crt_data. -
modestring
required
Push mode: PRODUCTION or DEVELOPMENT.
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