內容簡介
### 總結:
這個外掛能夠從 AIrticle-flow 網站生成的專案中取回文章並自動發布它們。
### 問題與答案:
1. 什麼是 User Information Route (/user)?
- 目的:檢索經過驗證的使用者的信息。
- 方法和端點:GET /user。
- 功能:當訪問這個端點時,會返回經過驗證使用者的數據。這在外掛中很有用,用於識別當前用戶。
2. 什麼是 User Projects Route (/projects)?
- 目的:擷取所有與經過驗證用戶相關的專案。
- 方法和端點:GET /projects。
- 功能:此端點從專案模型中擷取數據,其中 user_id 匹配經過驗證使用者的 ID。它在外掛中用於顯示所有用戶擁有的專案。
3. 什麼是 Project Articles Route (/projects/{projectId}/articles)?
- 目的:檢索與經過驗證用戶擁有的特定專案相關的文章。
- 方法和端點:GET /projects/{projectId}/articles。
- 功能:首先,它通過 projectId 找到專案。如果該專案屬於用戶,它會檢索與該專案關聯且狀態為 'created' 的文章。
4. 如何獲取 AIrticle-flow 的使用條款? *Terms of use*。
- 使用條款可在以下頁面找到:[https://airticle-flow.com/terms-of-use](https://airticle-flow.com/terms-of-use)。
5. 如何查看 AIrticle-flow 的隱私政策? *Privacy policy*。
- 隱私政策可以在此網址查看:[https://airticle-flow.com/privacy-policy](https://airticle-flow.com/privacy-policy)。
外掛標籤
開發者團隊
原文外掛簡介
Fetch and publish AI-generated articles from Airticle-flow directly into WordPress. The API of AIrticleflow is used in the following way: User Information Route (/user): Purpose: Retrieves the authenticated user’s information. Method & Endpoint: GET /user Functionality: When this endpoint is accessed, it returns the authenticated user’s data. This is useful in the plugin to identify the current user. User Projects Route (/projects): Purpose: Fetches all the projects associated with the authenticated user. Method & Endpoint: GET /projects Functionality: This endpoint fetches data from the Project model where the user_id matches the authenticated user’s ID. It’s used in the plugin to display all projects owned by the user. Project Articles Route (/projects/{projectId}/articles): Purpose: Retrieves articles related to a specific project, owned by the authenticated user. Method & Endpoint: GET /projects/{projectId}/articles Functionality: First, it finds the project by projectId. If the project belongs to the user, it retrieves articles associated with this project where the status is ‘created’. AIrticle-flow.com is a SaaS product that allow generation of quality blog post using artificial intelligence technologies. Terms of use are available at the following page: https://airticle-flow.com/terms-of-use The privacy policy of AIrticle-flow can be accessed at this address: https://airticle-flow.com/privacy-policy
