[WordPress] 外掛分享: bbPress API

首頁外掛目錄 › bbPress API
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
80+
安裝啟用
★★★★
4.3/5 分(3 則評價)
3164 天前
最後更新
問題解決
WordPress 4.7+ v1.0.14 上架:2017-01-17

內容簡介

這是 bbPress API 的第一個嘗試。

警告:此 API 將顯示 bbPress 可訪問的所有論壇、話題和回復。如果您有任何額外的插件來限制 bbPress 內容,請仔細檢查一切是否正常。

當前可用的讀取 (GET) 路由如下:

/wp-json/bbp-api/v1/forums/ (列出所有論壇)
/wp-json/bbp-api/v1/forums/id (包括最新的話題和子論壇)
/wp-json/bbp-api/v1/topics/ (所有論壇中的最新話題)
/wp-json/bbp-api/v1/topics/id (包括最新的回復)
/wp-json/bbp-api/v1/replies/id (顯示一個回復)
/wp-json/bbp-api/v1/topic-tags/
/wp-json/bbp-api/v1/stats/

/forums/id 和 /topics/id 的參數(參考 https://developer.wordpress.org/rest-api/using-the-rest-api/pagination/#pagination-parameters):

per_page (每頁顯示的記錄數)
page (頁數)

/topics/id 的參數(參考 https://developer.wordpress.org/rest-api/using-the-rest-api/linking-and-embedding/#embedding):

_embed (顯示回復的內容)

當前可用的寫入 (POST) 路由如下:

/wp-json/bbp-api/v1/forums/id (在此論壇中創建新話題)
/wp-json/bbp-api/v1/topics/id (回復到此話題 ID)
/wp-json/bbp-api/v1/replies/id (回復此回復 ID)

請在 https://github.com/ePascalC/bbp-API/ 上跟進開發情況!

特別感謝並致謝:

Daniel Turton (mistertwo) 提供話題和回復的 POST 函數
Tony Korologos (@tkserver) 提供他的應用程式輸入和測試

還請考慮使用以下插件:

bbP Toolkit
bbP Move Topics

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.14) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「bbPress API」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

A first attempt for a bbPress API.
WARNING This API will show all forums, topics, replies that bbPress has access to. If you have any extra plugin to restrict bbPress content, please double and triple check that everything works correctly.
Current routes for READING (GET):

/wp-json/bbp-api/v1/forums/ (list all forums)
/wp-json/bbp-api/v1/forums/id (includes latest topics and subforums)
/wp-json/bbp-api/v1/topics/ (latest topics from all forums)
/wp-json/bbp-api/v1/topics/id (includes latest replies)
/wp-json/bbp-api/v1/replies/id (show one reply)
/wp-json/bbp-api/v1/topic-tags/
/wp-json/bbp-api/v1/stats/

Parameters for /forums/id and /topics/id (following https://developer.wordpress.org/rest-api/using-the-rest-api/pagination/#pagination-parameters )

per_page (records per page)
page (page number)

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

_embed (showing content for replies)

Current routes for WRITING (POST):

/wp-json/bbp-api/v1/forums/id (create a new topic in this forum)
/wp-json/bbp-api/v1/topics/id (create a reply to this topic ID)
/wp-json/bbp-api/v1/replies/id (create a reply to this reply ID)

Follow development on https://github.com/ePascalC/bbp-API/ !
Many thanks and credits to:

Daniel Turton (mistertwo) for the topics and replies POST functions
Tony Korologos (@tkserver) for his input and testing with his app

Consider also the following plugins:

bbP Toolkit
bbP Move Topics

延伸相關外掛

文章
Filter
Apply Filters
Mastodon