> For the complete documentation index, see [llms.txt](https://docs.wjlo.cc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wjlo.cc/open/openwenan.md).

# 一言文案api

## 【简介】

本接口基于一言开源项目开发，接入开放平台

[点击这里](https://open.wjlo.cc/wenan/reg) 申请该项目的appid

## &#x20;请求文案

<mark style="color:blue;">`GET`</mark> `https://open.wjlo.cc/wenan/1.0/get`

#### Path Parameters

| Name  | Type   | Description |
| ----- | ------ | ----------- |
| appid | string | 开放平台应用appid |

{% tabs %}
{% tab title="200 正常请求返回内容 " %}

```
{
"status":"200",
"cid":"4872",
"type":"其他",
"content":"吾生三愿，纯朴却激越:一曰渴望爱情，二曰求索知识，三曰悲悯吾类之无尽苦难。",
"from":"网络"
}
```

{% endtab %}

{% tab title="403  请求参数中找不到appid，属于非法访问" %}

```
{
"status": "403",
"type": null,
"content": null,
"from": null
}
```

{% endtab %}

{% tab title="404  找不到appid" %}

```
{
"status": "404",
"type": null,
"content": null,
"from": null
}
```

{% endtab %}
{% endtabs %}

## 【返回内容】

| 参数      | 说明         |
| ------- | ---------- |
| status  | 提示请求状态     |
| cid     | 文案在数据库中的编号 |
| type    | 文案类型       |
| content | 文案内容       |
| from    | 文案来源       |
