申请动态令牌
## 接口名称
申请动态令牌
## 接口描述
在调用应用接口前,需要向系统申请访问权限动态令牌。
## 接口地址
http://localhost:8080/login
## 调用方式
|方法|数据类型|
|-|-|
|[ ] GET|[ ] form-data|
|[X] POST|[X] x-www-form-urlencoded|
|[ ] PUT|[ ] raw|
|[ ] DELETE||
## 参数说明
|参数名|类型|必填|说明|
|-|-|-|-|
|key|String|是|sm9公钥|
## 返回结果
#### 成功返回
|参数名|类型|说明|
|-|-|-|
|result|Int|调用结果(0:失败,1:成功)|
|token|String|动态令牌token(sm9加密)|
#### 失败返回
详见:[标识接口失败返回](doc:IF9bjOP4)
## 调用例子
``` JavaScript
var key= "...."; //公钥
var settings = {
"url": "http://localhost:8080/login",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/x-www-form-urlencoded"
},
"data": {
"key": key
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
```