# 公众号消息推送公共接口

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v2.Wechat/PublicGoWxMessage:
    get:
      summary: 公众号消息推送公共接口
      deprecated: false
      description: >
        ### 说明：此接口的作用是通过‘冰橙云“公众号推送消息给指定TOKEN用户（用户需先访问冰橙Ai助手，获得对应的TOKEN）

        # 需先关注“冰橙云”公众号

        ![image.png](https://api.apifox.cn/api/v1/projects/3216478/resources/398283/image-preview)



        :::tip[]

        本接口同时支持GET和POST两种请求方法。


        :::highlight purple 

        💡GET请求示例：https://yewu.bcwhkj.cn/api/v2.Wechat/PublicGoWxMessage?title=你好&content=这里是消息内容&token=你的TOKEN

        :::


        # 逻辑流程图





        ```mermaid

        graph TD

        关注冰橙云公众号 --> 通过公众号菜单访问冰橙Ai助手 --> 获取token --> GET/POST此接口 --> 

        成功请求后 --> 个人微信上会看到冰橙云公众号推送来的消息

        ```





        :::highlight yellow 💡

        最终效果 - 微信内通过冰橙云接收到的效果

        ![image.png](https://api.apifox.com/api/v1/projects/3216478/resources/568946/image-preview)

        :::
      tags:
        - 公众号服务接口
      parameters:
        - name: title
          in: query
          description: |
            要推送的消息标题
          required: false
          example: '123'
          schema:
            type: string
        - name: content
          in: query
          description: 要推送的消息内容
          required: false
          example: '456'
          schema:
            type: string
        - name: token
          in: query
          description: 通过https://yewu.bcwhkj.cn/获取
          required: false
          example: 你的token
          schema:
            type: string
        - name: Content-Type
          in: header
          description: 固定值
          required: false
          example: application/json
          schema:
            type: string
        - name: Authorization
          in: header
          description: token要更换为个人自己的TOKEN
          example: Bearer token
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: 公众号服务接口
      x-apifox-status: developing
      x-run-in-apifox: https://app.apifox.com/web/project/3216478/apis/api-343472306-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://yewu.bcwhkj.cn
    description: 正式环境
security: []

```
