lang | string Validation default: en | required |
user_api_hash | string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS | required |
GPRS Template
GET
/get_user_gprs_templates
Definition
Query String
Responses application/json
object | ||
items | object | optional |
user_gprs_templates | object | optional |
total |
integer
Validation
{pagination} |
optional |
per_page |
integer
Validation
{pagination} |
optional |
current_page |
integer
Validation
{pagination} |
optional |
last_page |
integer
Validation
{pagination} |
optional |
from |
integer
Validation
{pagination} |
optional |
to |
integer
Validation
{pagination} |
optional |
next_page_url |
null
string
Validation
{pagination} |
optional |
prev_page_url |
null
string
Validation
{pagination} |
optional |
url |
string
Validation
{pagination} |
optional |
data | array[object] | optional |
id | integer | optional |
user_id | integer | optional |
title | string | optional |
message | string | optional |
created_at | string | optional |
updated_at | string | optional |
status | integer | optional |
{ "items": { "user_gprs_templates": { "total": 1, "per_page": 10, "current_page": 1, "last_page": 1, "next_page_url": null, "prev_page_url": null, "from": 1, "to": 1, "data": [ { "id": 1, "user_id": 2, "title": "Template title", "message": "Template message", "created_at": "2016-06-26 17:31:48", "updated_at": "2016-06-26 17:31:48" } ], "url": "api/get_user_gprs_templates" } }, "status": 1 }
object | ||
status | integer | optional |
errors | object | optional |
{ "status": 0, "errors": {} }
object | ||
status | integer | optional |
error | string | optional |
{ "status": 0, "error": "No language selected." }
GET
/add_user_gprs_template_data
Definition
Query String
lang | string Validation default: en | required |
user_api_hash | string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS | required |
Responses application/json
POST
/add_user_gprs_template
Definition
Query String
lang | string Validation default: en | required |
user_api_hash | string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS | required |
Request Body multipart/form-data
object
Validation
{gprsTemplatePost} |
||
title | string | required |
message | string | required |
protocol | string | required |
Responses application/json
object | ||
status | integer | optional |
item |
object
Validation
{gprsTemplate} |
optional |
id | integer | optional |
user_id | integer | optional |
title | string | optional |
message | string | optional |
protocol | string | optional |
updated_at | string | optional |
created_at | string | optional |
{ "status": 1, "item": { "id": 2, "user_id": 2, "title": "GPRS Title", "message": "message content", "updated_at": "2016-06-26 17:41:43", "created_at": "2016-06-26 17:41:43" } }
object | ||
status | integer | optional |
errors | object | optional |
{ "status": 0, "errors": {} }
object | ||
status | integer | optional |
error | string | optional |
{ "status": 0, "error": "No language selected." }
GET
/edit_user_gprs_template_data
Definition
Query String
lang | string Validation default: en | required |
user_api_hash | string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS | required |
user_gprs_template_id | integer | required |
Responses application/json
object | ||
item |
object
Validation
{gprsTemplate} |
optional |
id | integer | optional |
user_id | integer | optional |
title | string | optional |
message | string | optional |
protocol | string | optional |
updated_at | string | optional |
created_at | string | optional |
protocols | array[object] | optional |
id | string | optional |
title | string | optional |
status | integer | optional |
{ "item": { "id": 1, "user_id": 2, "title": "Template title", "message": "Template message", "created_at": "2016-06-26 17:31:48", "updated_at": "2016-06-26 17:31:48" }, "status": 1 }
object | ||
status | integer | optional |
errors | object | optional |
{ "status": 0, "errors": {} }
object | ||
status | integer | optional |
error | string | optional |
{ "status": 0, "error": "No language selected." }
POST
/edit_user_gprs_template
Definition
Query String
lang | string Validation default: en | required |
user_api_hash | string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS | required |
Request Body multipart/form-data
object | ||
id |
integer
Validation
{ObjectID} |
required |
title |
string
Validation
{gprsTemplatePost} |
required |
message |
string
Validation
{gprsTemplatePost} |
required |
protocol |
string
Validation
{gprsTemplatePost} |
required |
Responses application/json
object
Validation
{success} |
||
status | integer | optional |
{ "status": 1, "item": { "id": 2, "user_id": 2, "title": "GPRS Title", "message": "message content", "updated_at": "2016-06-26 17:41:43", "created_at": "2016-06-26 17:41:43" } }
object | ||
status | integer | optional |
errors | object | optional |
{ "status": 0, "errors": {} }
object | ||
status | integer | optional |
error | string | optional |
{ "status": 0, "error": "No language selected." }
GET
/destroy_user_gprs_template
Definition
Query String
lang | string Validation default: en | required |
user_api_hash | string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS | required |
user_gprs_template_id | integer | required |
GET
/get_user_gprs_message
Definition
Query String
lang | string Validation default: en | required |
user_api_hash | string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS | required |
user_gprs_template_id | integer | required |
Responses application/json
object | ||
status | integer | optional |
message | string | optional |
{ "status": 1, "message": "message content" }
object | ||
status | integer | optional |
errors | object | optional |
{ "status": 0, "errors": {} }
object | ||
status | integer | optional |
error | string | optional |
{ "status": 0, "error": "No language selected." }
MODEL
gprsTemplatePost
object | ||
title | string | required |
message | string | required |
protocol | string | required |
MODEL
gprsTemplate
object | ||
id | integer | optional |
user_id | integer | optional |
title | string | optional |
message | string | optional |
protocol | string | optional |
updated_at | string | optional |
created_at | string | optional |
{ "id": 2, "user_id": 2, "title": "GPRS Title", "message": "message content", "updated_at": "2016-06-26 17:41:43", "created_at": "2016-06-26 17:41:43" }