[wordpress插件] bbPress APIbbPress API

wordpress 插件 文章 2020-03-01 03:50 541 0 全屏看文

AI助手支持GPT4.0

评分
80
描述

A first attempt for a bbPress API.

首次尝试使用bbPress API。

WARNING This API will show all forums, topics, replies that bbPress has access to.

警告此API将显示bbPress有权访问的所有论坛,主题和回复。

If you have any extra plugin to restrict bbPress content, please double and triple check that everything works correctly.

如果您还有其他插件可以限制bbPress的内容,请仔细检查两次,以确保一切正常。

Current routes for READING (GET):

当前的阅读(获取)路线:

    • /wp-json/bbp-api/v1/forums/ (list all forums)
    • / wp-json / bbp-api / v1 / forums /(列出所有论坛)

    • /wp-json/bbp-api/v1/forums/id (includes latest topics and subforums)
    • / wp-json / bbp-api / v1 / forums / id (包括最新主题和子论坛)

    • /wp-json/bbp-api/v1/topics/ (latest topics from all forums)
    • / wp-json / bbp-api / v1 / topics /(所有论坛的最新主题)

    • /wp-json/bbp-api/v1/topics/id (includes latest replies)
    • / wp-json / bbp-api / v1 / topics / id (包括最新回复)

    • /wp-json/bbp-api/v1eplies/id (show one reply)
    • / wp-json / bbp-api / v1 / replies / id (显示一个答复)

    • /wp-json/bbp-api/v1/topic-tags/
    • / wp-json / bbp-api / v1 / topic-tags /

    • /wp-json/bbp-api/v1/stats/
    • / wp-json / bbp-api / v1 / stats /

    Parameters for /forums/id and /topics/id (following https://developer.wordpress.orgest-api/using-the-rest-

    / forums / id 和/ topics / id

    参数(遵循https://developer.wordpress.orgest-api/using-the-rest-

    api/pagination/#pagination-parameters )

    api / pagination /#pagination-parameters)

      • per_page (records per page)
      • 每页(每页记录)

      • page (page number)
      • 页面(页码)

      Parameter for /topics/id (following https://developer.wordpress.orgest-api/using-the-rest-api/linking-and-embedding/#embedding )<

      / topics / id 的参数(遵循https://developer.wordpress.orgest-api/using-the-rest-api/linking-and-embedding/#embedding)<

      /p>

      / p>

        • _embed (showing content for replies)
        • _embed(显示答复内容)

        Current routes for WRITING (POST):

        当前的写入(POST)路线:

          • /wp-json/bbp-api/v1/forums/id (create a new topic in this forum)
          • / wp-json / bbp-api / v1 / forums / id (在此论坛中创建一个新主题)

          • /wp-json/bbp-api/v1/topics/id (create a reply to this topic ID)
          • / wp-json / bbp-api / v1 / topics / id (创建对此主题ID的回复)

          • /wp-json/bbp-api/v1eplies/id (create a reply to this reply ID)
          • / wp-json / bbp-api / v1 / replies / id (创建对此答复ID的答复)

          Follow development on https://github.com/ePascalC/bbp-API/ !

          按照https://github.com/ePascalC/bbp-API/上的说明进行开发!!

          Many thanks and credits to:

          非常感谢和感谢:

            • Daniel Turton (mistertwo) for the topics and replies POST functions
            • Daniel Turton(mistertwo)讨论主题并回复POST功能

            • Tony Korologos (@tkserver) for his input and testing with his app
            • Tony Korologos(@tkserver)进行输入和使用其应用程序进行测试

            Consider also the following plugins:

            还考虑以下插件:

              • bbP Toolkit
              • bbP工具包

              • bbP Move Topics
              • bbP移动主题

安装步骤

Option 1:

选项1:

    1. On your dashboard, go to Plugins > Add new
    2. 在信息中心上,转到“插件”>“添加新内容”

    3. search for bbPress API
    4. 搜索 bbPress API

    5. install and activate the plugin
    6. 安装并激活插件

    Option 2:

    选项2:

      1. Unzip the contents to the “/wp-content/plugins/” directory.
      2. 将内容解压缩到“ / wp-content / plugins /”目录。

      3. Activate the plugin through the “Plugins” menu in WordPress.
      4. 通过WordPress中的“插件”菜单激活插件。

下载地址
https://downloads.wordpress.org/plugin/bbp-api.1.0.14.zip
-EOF-

AI助手支持GPT4.0