OkayAPI Docs


API Path: /api/App/Market_KamiNum/Take

API Description: 根据数量卡密,判断是否存在,是否已使用,成功使用时返回卡密的相关信息。使用前请先安装卡密插件

1
API Traffic
HTTP/HTTPS
Protocol
GET/POST
Method
UTF-8
Charset
JSON
Response

API Debug   


API Params

ParameterTypeRequiredDefaultNoteDescription
HTTP_APPKEYStringRequiredMIN: 32Common Put Your APPKEY
kamiStringRequiredMIN: 6卡密

API Debug

KEYREQUIREDVALUE
app_key *Required
kami *Required

API Response

KEYTypeDescription
err_codeInt操作码,0表示成功,1表示卡密不存在,2表示卡密已使用,9表示插件未安装
err_msgString错误提示信息,err_code非0时参考此提示信息
kami_detailObject卡密的相关信息
kami_detail.kamiString卡密
kami_detail.kami_typeString卡密类型
kami_detail.kami_descString卡密描述
kami_detail.kami_numInt卡密数量
kami_detail.kami_noteString卡密备注

HTTP Response Code

HTTP Status CodeDescription
Http Status = 200Success
Http Status = 400Illegal-Params
Http Status = 401Illegal-Token
Http Status = 402IP-Banned
Http Status = 404API-NOT-Exsits
Http Status = 406Illegal-APPKEY
Http Status = 407APPKEY-Expired-Out
Http Status = 408APPKEY-Busy
Http Status = 409Illegal-Sign
Http Status = 413API-Traffic-NOT-Enough
Http Status = 415API-LOCKED
Http Status = 500Internal-Server-Error