新增的

This commit is contained in:
khazic 2024-04-11 10:25:54 +08:00
parent 4a1d39bdd8
commit 6ced4e76d2

View File

@ -21,20 +21,21 @@ Listening Intelligence (Emohaa) API to API [emohaa-free-api](https://github.com/
## Table of Contents ## Table of Contents
* [Disclaimer](#Disclaimer) * [Disclaimer](#disclaimer)
* [Online Experience](#Online-Experience) *[Online experience](#在线experience)
* [Effect Examples](#Effect-Examples) * [Effect Example](#EffectExample)
* [Access Preparation](#Access-Preparation) * [Access preparation](#access preparation)
* [Multi-Account Access](#Multi-Account-Access) * [Multiple account access](#multiple account access)
* [Docker Deployment](#Docker-Deployment) * [Docker Deployment](#DockerDeployment)
* [Docker-compose Deployment](#Docker-compose-Deployment) * [Docker-compose deployment](#Docker-compose deployment)
* [Native Deployment](#Native-Deployment) * [Native Deployment](#nativedeployment)
* [API List](#API-List) * [Interface List](#Interface List)
* [Dialogue Completion](#Dialogue-Completion) * [Dialogue completion](#dialogue completion)
* [Document Reading](#Document-Reading) * [Document Interpretation](#document interpretation)
* [Image Analysis](#Image-Analysis) * [Image analysis](#imageanalysis)
* [Precautions](#Precautions) * [refresh_token survival detection](#refresh_token survival detection)
* [Nginx Reverse Proxy Optimization](#Nginx-Reverse-Proxy-Optimization) * [Note](# NOTE)
* [Nginx anti-generation optimization](#Nginx anti-generation optimization)
## Disclaimer ## Disclaimer
@ -377,6 +378,26 @@ Response data:
}, },
"created": 1710123627 "created": 1710123627
} }
```
### refresh_token survival detection
Check whether refresh_token is alive. If live is not true, otherwise it is false. Please do not call this interface frequently (less than 10 minutes).
**POST /token/check**
Request data:
```json
{
"token": "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9..."
}
```
Response data:
```json
{
"live": true
}
``` ```
## Precautions ## Precautions