🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
## 接口定义 ~~~[api] POST:http://open.koldata.net/token *string:username=weixiaomeng#用户名 *string:password=weimeng#密码 *string:app_id=1E7GKxzGsV#开放平台账号 *string:app_secret=La7NNpUURLRCGXGBwsUmSIywJjsPKRpexdVwVLDO#开放平台密码 <<< success { "token_type": "Bearer", "expires_in": 7200, "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6ImZkMjhiM2JiZGQ3YjMxNWZlZTE4MTNlZDc4ZTM2YjY1ZDg4OTEyYjgyM2E1ZTBiOTE3OTM5NjlkNDk1NTFhMTAxMzZlNGQ2YmY3ODk4NTJkIn0.eyJhdWQiOiIxIiwianRpIjoiZmQyOGIzYmJkZDdiMzE1ZmVlMTgxM2VkNzhlMzZiNjVkODg5MTJiODIzYTVlMGI5MTc5Mzk2OWQ0OTU1MWExMDEzNmU0ZDZiZjc4OTg1MmQiLCJpYXQiOjE1MTQ1MzcxNDksIm5iZiI6MTUxNDUzNzE0OSwiZXhwIjoxNTE0NTQ0MzQ5LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.EFgI8dQHFriZqo846QNsCW_MfNC7moqgcqtHnkXN6Hby6O4oldzUOH5IqMJW0a1PKSD5d4vol4oXTuCRGifPjh6iXxEcEuVNolOitrYhE8qzxoj0Mn8jbYFq5VLgDYzXPl-oFOMsGp5Vt86Rbv2Ez_i2a5sfhlCgDhIU7L78UfGU8WlLlifd4qy4fVW03SLBIaYsNOURIL2cW3a-CVxgRQAPUA1hLCpHpBE_doP_MWNaRtyHEZVYaFM1Nn0QEs1SBXvtXR6b95eeUDPI9iejf30v3qOQRPOsy9s5Myj0whTsw24k-osaW-FAAHZ1ChlEZtULebVemuK4y8incPdZ_97HpSJ_MDz0iHZpljSybYYzr5jlUEMGEQvrYfGgTf1mbTPn3Fdri_KUeKFi4XWkGxcndCV9PBXoT2JYmEmoYrluCqdV-u8GKX0b0CtkCnDvU62ylSlvihyO4uJCYAz_kgdR5oGMMkofKXHxOVCh_naJseYLQP4Jd5ANHsoh7oubJIjhLSob0G2ivXEravELiNAq5zUYt2n7MDn6xGQK_3NGRdnfYnB86ZDsqVYHzHzIbq3O8C9bMTNF3R6T1aG-K8y892Xlu9lq3UbSdBJp-Jvr-r40rJDiy-DQO0vq_U5tb70SsoOiUIX-6qA9g1416r16Fz8deAGH7zbotoXRjt0", "refresh_token": "def5020015981c7ed9b74ce6e1222358e95075edfef5d155dd35bf8a18a1ae1cc14932a49a9f07c2fd15ed0f4a611f5e24224217d6119968b580048e01a4f87cd5b5c4a4b93bd919424f273d579c50879618639a34286f0ca410257d659a0a77c42525a0e8027f2d60ab2f9be2a8d201fbb950338f0ba44afc62536c3da43df333eb476085a3732e25fdefaa936e58e9ec2565b580021daa01b8d03ffbe15bb18859f23c614169e1a21ae00a6cfd4671eb957a3ccd710236d85f5097595b6a211b4b0836afe3ccdc0839f9d844d2f5d2871414300a5c3a1eeeb6669657e0e642a3b929e873a0eea6996964e9c67e8cc218d80cb028203a171f91e5dbae891d74315c4065e574675e3ff181f6b2f56c3a123014f03b9e2e0e4dadd5453db8597e0db838e3193a2db12ac614cd91997ff1abf2e0e7a2878a79ec757cfe146d7b588d049a18e29bf81174ccaa3bdf3b20d7685512dcb255c5e94be84a6d720b5f" } <<< error { "status": 429, "message": "Too Many Attempts." } ~~~ ## 响应参数说明 | 字段 | 说明 | 备注 | |---|---|---| | token_type | token类型 | | | expires_in | token有效时长 | 单位:秒 | | access_token | 接口调用凭据 | 有效时间为2小时,同一时间内同一用户只有最后一次获取的access_token有效 | | refresh_token | 凭据过期时用于刷新的凭据 | refresh_token 过期时间为24小时;refresh_token一次有效 | ## 接口访问限制及注意事项 1.refresh_token 过期时间为24小时; 2.该接口限速每分钟可调用一次,超频率将被限制5分钟内禁止访问; 3.同一时间内同一用户只有最后一次获取的access_token有效; 4.refresh_token一次有效。