API DOCS

API基本信息
請求地址 http://www.receivesmsotp.com//web_api
請求方式 POST
響應格式 JSON
重要 通过回调地址获取短信,您可以在 購買號碼/訂單歷史 设置短信回调地址,信息将实时通知道您的URL
API TOKEN 请先登录
获取用户信息 URL: getUserInfo
参数 实例 必选
api_token xxxxxxxxx
Example response
{
	"code": 0,
	"data": {
		"name": "icdef",
		"email": "xxxx@qq.com",
		"amount": "2999.97"
	}
}
                    
获取用户信息 URL: getProjectList
Example response
{
	"code": 0,
	"data": [{
		"name": "All(所有項目)",
		"amount": "0.25",
		"first_letter": "A"
	}, {
		"name": "知乎",
		"amount": "0.03",
		"first_letter": "Z"
	}]
}
                    
購買號碼 URL: buyNumber
参数 实例 必选
api_token xxxxxxxxx
project 1
country USA
num 1
Example response
ERROR RESPONSE
{
	"code": -1,
	"message": "error"
}
SUCCESS RESPONSE
{
	"code": 0,
	"data": {}
}
                    
我的號碼 URL: myNumber
参数 实例 必选
api_token xxxxxxxxx
Example response
{
	"code": 0,
	"data": [{
		"id": 1,
		"phone": "15672630810",
		"start_time": "2022-07-25 11:00:33",
		"end_time": "2022-08-04 11:00:33",
		"project_name": "\u77e5\u4e4e"
	}]
}