开发者
让沟通无国界,让交流畅通,让心灵互通
SMS Record Query
Remarks
  • Error code

code Explanation
0 success
1 params invalid
2 keys invalid
3 page_size or page_index invalid
4 page_size or page_index invalid
5 api request times invalid


Return parameter description
Parameter name Type Explanation
code string Interface return value
senderid string Text message senderid
body string Text message content
phone string Target number, with country code
msgid string Text message id
dr_status string Submission status
billing_size number Number of billing entries
billing_price number Billing unit price
date string Sending date
dr_time string dr Date
billing_status string Billing status
network string Operator
dr string Operator's Receipt


Return an example
{
	"code": "0",	
	"info": {
				"total": 1119,			
				"page": 112,			
				"pageSize": 2,			
				"rows": [
				{		
							"senderid": "",					
							"body": "hello sms test 001.",					
							"phone": "62833935195",					
							"msgid": "5cd1397f-f3b2-95de-ed5e-27d5f39a230d",					
							"dr_status": "Success",					
							"billing_size": 2,					
							"billing_price": 0.09,					
							"date": "2019-06-15 23:40:00",					
							"dr_time": "2019-06-15 23:42:00",					
							"billing_status": "Yes",					
							"network": 893,					
							"dr":"DELIVRD"
				},
				{		
							"senderid": "",					
							"body": "hello sms test 002.",					
							"phone": "62844049494",					
							"msgid": "f76bc33281124f8aa8bca33ce54b01ad",					
							"dr_status": "Success",					
							"billing_size": 2,					
							"billing_price": 0.09,					
							"date": "2019-06-15 23:50:04",					
							"dr_time": "2019-06-15 23:53:00",					
							"billing_status": "Yes",					
							"network": 791,					
							"dr":"DELIVRD"
				}
				]
		}
}


Request example
curl --location --request POST 'http://api.ueasytel.com/api/sms/getSmsCdr' \
--data-urlencode 'appkey=asdf' \
--data-urlencode 'secretkey=qwer' \
--data-urlencode 'date=20230202' \
--data-urlencode 'page_size=10' \
--data-urlencode 'page=1'


Parameter
Parameter name Mandatory choice Type Explanation
appkeyYes string SMS application appkey
secretkeyYes string The SMS application secretkey
dateYes string Date (yyyyMMdd)
page_sizeYes string Quantity (less than 1,000 pieces)
pageYes string Starting page
sort_typeNo string Sorting type: 0= ascending order, 1= descending order; The default is 0.


Request method
  • URL:http://api.ueasytel.com/api/sms/getSmsCdr

  • Method:POST

  • Content-Type:application/x-www-form-urlencoded

Brief description
  • SMS record query. Only the SMS records of the last 31 days can be queried. Please check them in time. If full SMS record maintenance is required, the receipt callback function can also be used to automatically receive and save the data.