Home Support SMS API

Two-Way SMS Inquire

Description: Query the user specified interval reply message, the biggest query time interval for a month, the minimum starting time for the 2022-07-01 T00:00:00 + 08:00.

Request Parameters Description:

Parameters Description Required Type

appId

App ID (SMS-SMS APP)

Yes

String

current

Current page number: 1-N

Yes

Int

size

Number displayed on each page: 1-100

Yes

Int

params

Parameters on each page

Yes

JSONObject

  strTime

Starting time of inquiry ISO8601 standard time format 2022-08-01T00:00:00+08:00

Yes

String

  endTime

Ending time of inquiry ISO8601 standard time format 2022-08-31T00:00:00+08:00

Yes

String

Request URL:

                    
                      https://api.onbuka.com/v3/recordMo
                    
                  

Request Sample:

                    
                        Request URL:
                            https://api.onbuka.com/v3/recordMo
                        Request Method:
                            POST
                        Request Headers:
                            Content-Type: application/json;charset=UTF-8
                            Sign: 05d7a50893e22a5c4bb3216ae3396c7c
                            Timestamp: 1630468800
                            Api-Key: bDqJFiq9
                        Request Body:
                            {
                                "appId": "4luaKsL2",
                                "current":1,
                                "size":10,
                                "params":{
                                    "strTime":"2022-08-01T00:00:00+08:00",
                                    "endTime":"2022-08-31T00:00:00+08:00"
                                }
                            }
                    
                  

Response Parameters Description:

Parameters Description Type

status

"0" means successful, others than 0 means failure, seeing Status code description.

String

reason

Failure reason description

String

data

Data on each page

JSONObject

  total

Total record number

Int

  size

Number displayed on each page

Int

  current

Current page number

Int

  pages

Total pages

Int

  records

Data set

JSONArray

    number

Sender number

String

    sendId

Send id

String

    receiveTime

Received time of inquiry ISO8601 standard time format 2022-08-01T00:00:00+08:00

String

    content

SMS content

String

    mcc

mcc

Int

    mnc

mnc

Int

    operator

Operator

String

    pricedetail

Fee details

JSONObject

      pay

Total cost

String

      chargeCnt

Number of billing entries

Int

      currency

Currency

String

      price

Unit

String

Response Sample:

                    
                        {
                            "status":"0",
                            "reason":"success",
                            "data":{
                                "total":2,
                                "size":10,
                                "current":1,
                                "pages":1,
                                "records":[
                                    {
                                        "number":"91850000000",
                                        "sendId":"buka",
                                        "receiveTime":"2022-08-01T17:41:07+08:00",
                                        "content":"hello",
                                        "mcc":404,
                                        "mnc":-1,
                                        "operator":"India",
                                        "pricedetail":{
                                            "pay":"0.1",
                                            "chargeCnt":1,
                                            "currency":"EUR",
                                            "price":"0.1"
                                        }
                                    }
                                ]
                            }
                        }
                    
                  
 

Feedback

0/500

Need help?

Click here and start chatting with us!