Welcome [Dou Code Platform]

@(Help documentation)

Welcome [Dou Code Platform]Get the verification code APIGet TokenGet a list of projectsGet the number of projects countGet NumberGet verification codeRelease numberNumber blacklistedSMS ordersSMS order statisticsRecharge detailsRecharge order statisticsGet user informationFeedback and suggestions


Get the verification code API

NameValueDescription
Domainhttp://www.jindousms.com 
AgreementHTTPS 
MethodGET 

Example of the request API return (error codes are only 1 and -1, data is a successful return value or error message)

Get Token

Route: /public/user/token This API cannot be called frequently, is limited to 30 times a day, and you can get token sits for a week. Method: GET

Request parameters:

Argument nameDescribeNecessary
usernameUsernameyes
passwordPasswordyes
newToken"y", get the new token (valid for 7 days, do not pass this parameter, will get the same token)no

Request parameters(Please remove the [ ]):

Return to an example:

Get a list of projects

Route: /public/project/list Method: GET

Request parameters:

Argument nameDescribeNecessary
pagePageyes
limitNumber of bars per pageyes
keywordKeyword ssearchno
tokenGet from getToken APIyes

Example of a request:

Return to an example:

Return data field resolution

Argument nameDescribe
_id 
cnnameCN Name
ennameEN Name
sellingPricePrice RMB(CNY) units (penny)
myPidProject ID
tokenGet from getToken API

Get the number of projects count

Route: /public/project/count Method: GET

Request parameters:

Argument nameDescribeNecessary
keywordKeyword ssearchno

Example of a request:

Return to an example:

Get Number

Route: /public/sms/getNumber Method: GET

Request parameters:

Argument nameDescribeNecessary
myPidProject IDyes
numberSpecify Numberno
localeInternational domain name abbreviation (used when project name is not country)no
tokenGet from getToken APIyes

Example of a request:

Return to an example:

Return data field resolution

Argument nameDescribe
orderIdGet the order ID for the number
numberNumber
tokenGet from getToken API

Get verification code

Route: /public/sms/getCode Method: GET

Request parameters:

Argument nameDescribeNecessary
orderIdGet the order ID for the numberyes
tokenGet from getToken APIyes

Example of a request:

Return to an example:

Return data field resolution

Argument nameDescribe
codeVerification code
contentText message content
numberNumber
tokenGet from getToken API

Release number

Route: /public/sms/releaseNumber Release 10 seconds after acquiring number Method: GET

Request parameters:

Argument nameDescribeNecessary
orderIdOrder ID returned by the Get numberyes
tokenGet from getToken APIyes

Example of a request:

Return to an example:

Number blacklisted

Route: /public/sms/shieldNumber Join the blacklist only if Number is unavailable or if the verification code is not available. Method: GET

Request parameters:

Argument nameDescribeNecessary
orderIdOrder ID returned by the Get numberyes
tokenGet from getToken APIyes

Example of a request:

Return to an example:

##Billing API

SMS orders

Route: /public/sms/order/list Method: GET

Request parameters:

Argument nameDescribeNecessary
pagePageyes
limitNumber of bars per pageyes
orderIdOrder IDno
numberNumberno
startTimeStart timeno
endTimeEnd timeno
tokenGet from getToken APIyes

Example of a request:

Return to an example:

Return data field resolution

Argument nameDescribe
_idOrder ID
codeVerification code
contentText message content
numberNumber
numberStatusNumberState
smsStatusSMS status
projectInfo.cnnameCN Name
projectInfo.ennameEN Name
projectInfo.sellingPricePrice RMB(CNY) units (penny)
projectInfo.myPidproject id
createdAtCreation time
updatedAtUpdatetimed
tokenGet from getToken API

SMS order statistics

Route: /public/sms/order/count Method: GET

Request parameters:

Argument nameDescribeNecessary
orderIdOrder IDno
numberNumberno
startTimeStart timeno
endTimeEnd timeno
tokenGet from getToken APIyes

Example of a request:

Return to an example:

Recharge details

Route: /public/recharge/list Method: GET

Request parameters:

Argument nameDescribeNecessary
pagePageyes
limitNumber of bars per pageyes
orderIdRecharge Order IDno
statusState"all" "paid" "unpaid"no
startTimeStart timeno
endTimeEnd timeno
tokenGet from getToken APIyes

Example of a request:

Return to an example:

Return data field resolution

Argument nameDescribe
_idOrder ID
statusPayment status
amountAmount of order RMB(CNY) units (penny)
orderAmtActual amount paid RMB(CNY) units (penny)
paymentPayment method
createdAtCreation time
updatedAtUpdatetimed
tokenGet from getToken API

Recharge order statistics

Route: /public/recharge/count Method: GET

Request parameters:

Argument nameDescribeNecessary
orderIdRecharge Order IDno
statusState"all" "paid" "unpaid"no
startTimeStart timeno
endTimeEnd timeno
tokenGet from getToken APIyes

Example of a request:

Return to an example:

##User information

Get user information

Route: /public/user/info Method: GET

Request parameters:

Argument nameDescribeNecessary
tokenGet from getToken APIyes

Example of a request:

Return to an example:

Return data field resolution

Argument nameDescribe
_idUser ID
usernameUsername
mobileMobile
balanceBalance RMB(CNY) units (penny)
emailEmail
qqQQ
role.nameRole Name
role.accessRole permissions

Feedback and suggestions

Thanks for reading this help document, please contact: