Welcome [Dou Code Platform]

@(Help documentation)

Welcome [Dou Code Platform]Get the verification code APIGet apikeyGet 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 
AgreementHTTP 
MethodGET 

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

Get apikey

Please go to User Center => User Information to view apikey, if you need to change, click the update button

 

Get a list of projects

Route: /public/project/list Method: GET

Request parameters:

Argument nameDescribeNecessary
pagePageyes
limitNumber of bars per pageyes
keywordKeyword ssearchno
apikeyPersonal Center => User Information View apikeyyes

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
apikeyPersonal Center => User Information View apikey

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
apikeyPersonal Center => User Information View apikeyyes

Example of a request:

Return to an example:

Return data field resolution

Argument nameDescribe
orderIdGet the order ID for the number
numberNumber
apikeyPersonal Center => User Information View apikey

Get verification code

Route: /public/sms/getCode Method: GET

Request parameters:

Argument nameDescribeNecessary
orderIdGet the order ID for the numberyes
apikeyPersonal Center => User Information View apikeyyes

Example of a request:

Return to an example:

Return data field resolution

Argument nameDescribe
codeVerification code
contentText message content
numberNumber
apikeyPersonal Center => User Information View apikey

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
apikeyPersonal Center => User Information View apikeyyes

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
apikeyPersonal Center => User Information View apikeyyes

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
apikeyPersonal Center => User Information View apikeyyes

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
apikeyPersonal Center => User Information View apikey

SMS order statistics

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

Request parameters:

Argument nameDescribeNecessary
orderIdOrder IDno
numberNumberno
startTimeStart timeno
endTimeEnd timeno
apikeyPersonal Center => User Information View apikeyyes

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
apikeyPersonal Center => User Information View apikeyyes

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
apikeyPersonal Center => User Information View apikey

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
apikeyPersonal Center => User Information View apikeyyes

Example of a request:

Return to an example:

##User information

Get user information

Route: /public/user/info Method: GET

Request parameters:

Argument nameDescribeNecessary
apikeyPersonal Center => User Information View apikeyyes

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: