REST API V3 / SMS / Get
URL
GET /wp-json/gh/v3/sms
Method
This endpoint supports the GET
method.
Request
You can pass the search string to get SMS with that string.
PARAM | TYPE | REQUIRED | DESCRIPTION |
search |
string | no | String to search in SMS. |
q |
string | no | String to search in SMS. |
select |
bool | no | Returns select formate data. |
select2 |
bool | no | Returns select2 formate data. |
Example
Here is the full example of the URI with the query string. If a query string is not present in the URI it will return all the SMS.
http://yoursite.com/wp-json/gh/v3/sms?q=hello
Response
If the SMS is found you will receive a 200 OK response with the SMS detail. An example response is below.
{ "sms": [ { "ID": "2", "title": "hello", "message": "Hello Welcome to Groundhogg!", "author": "1" } ], "status": "success" }