[wordpress插件] AndroPress REST APIAndroPress REST API

wordpress 插件 文章 2020-02-18 10:20 504 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Get REST API response as JSON to android app, using token authenticated request .

使用令牌身份验证请求,将REST API响应以JSON格式获取到Android应用。

AndroPress is a secure way of requesting and receiving JSON data from your website to android app using REST service .

AndroPress是使用REST服务从您的网站向android应用请求和接收JSON数据的安全方式。

You can request for :

您可以要求:

    • categories : https://yoursite.com/wp-admin/admin-post.php?action=andropress_rest_api&key=YOUR_APP_KEY&title=category
    • 类别:https://yoursite.com/wp-admin/admin-post.php?action=andropress_rest_api&key=YOUR_APP_KEY&title=category

    • latest posts : https://yoursite.com/wp-admin/admin-post.php?action=andropress_rest_api&key=YOUR_APP_KEY&title=post
    • 最新帖子:https://yoursite.com/wp-admin/admin-post.php?action=andropress_rest_api&key=YOUR_APP_KEY&title=post

    • category posts : https://yoursite.com/wp-admin/admin-post.php?action=andropress_rest_api&key=YOUR_APP_KEY&title=post&category_name=CATEGORY_NAME
    • 类别帖子:https://yoursite.com/wp-admin/admin-post.php?action=andropress_rest_api&key=YOUR_APP_KEY&title=post&category_name=CATEGORY_NAME

    • search result : https://yoursite.com/wp-admin/admin-post.php?action=andropress_rest_api&key=YOUR_APP_KEY&title=post&s=SEARCH_QUERY
    • 搜索结果:https://yoursite.com/wp-admin/admin-post.php?action=andropress_rest_api&key=YOUR_APP_KEY&title=post&s=SEARCH_QUERY

    • posts with offset : https://yoursite.com/wp-admin/admin-post.php?action=andropress_rest_api&key=YOUR_APP_KEY&title=post&offset=OFFSET_VALUE
    • 具有偏移量的帖子:https://yoursite.com/wp-admin/admin-post.php?action=andropress_rest_api&key=YOUR_APP_KEY&title=post&offset=OFFSET_VALUE

    • posts with posts_per_page : https://yoursite.com/wp-admin/admin-post.php?action=andropress_rest_api&key=YOUR_APP_KEY&title=post&posts_per_page=NO_OF_POSTS
    • 带有posts_per_page的帖子:https://yoursite.com/wp-admin/admin-post.php?action=andropress_rest_api&key=YOUR_APP_KEY&title=post&posts_per_page=NO_OF_POSTS

    Note : You can request with multiple parameters.

    注意:您可以请求多个参数。

    For example you can pass ‘category_name’ as well as ‘posts_per_page’ in the url.

    例如,您可以在网址中传递“ category_name”和“ posts_per_page”。

安装步骤

Using The WordPress Dashboard

使用WordPress仪表板

    1. Navigate to the ‘Add New’ in the plugins dashboard
    2. 导航至插件仪表板中的“添加新项”

    3. Search for ‘andropress-rest-api’
    4. 搜索“ andropress-rest-api”

    5. Click ‘Install Now’
    6. 点击“立即安装”

    7. Activate the plugin on the Plugin dashboard
    8. 在“插件”信息中心上激活插件

    Uploading in WordPress Dashboard

    在WordPress仪表板中上传

      1. Navigate to the ‘Add New’ in the plugins dashboard
      2. 导航至插件仪表板中的“添加新项”

      3. Navigate to the ‘Upload’ area
      4. 导航到“上传”区域

      5. Select andropress-rest-api from your computer
      6. 从计算机中选择 andropress-rest-api

      7. Click ‘Install Now’
      8. 点击“立即安装”

      9. Activate the plugin in the Plugin dashboard
      10. 在“插件”信息中心中激活插件

      CONFIGURATION

      配置

        1. Log in to your WordPress Dashboard
        2. 登录到WordPress仪表板

        3. Navigate to the ‘AndroPress Rest’ in the Dashboard
        4. 导航到仪表板中的“ AndroPress Rest”

        5. On the ‘Generate New’ tab , enter your ‘App Name’ and generate ‘App Key’ and click ‘Submit’
        6. 在“生成新的”标签上,输入您的“应用名称”并生成“应用密钥”,然后单击“提交”

        7. Click on the ‘My Apps’ tab to view your Apps
        8. 点击“我的应用”标签以查看您的应用

        9. Click on the App Name to view APP KEY
        10. 单击“应用程序名称”以查看APP KEY

        11. Copy the App Key
        12. 复制应用密钥

        13. Use this key while requesting the API
        14. 在请求API时使用此密钥

下载地址
https://downloads.wordpress.org/plugin/andropress-rest-api.1.4.zip
-EOF-

AI助手支持GPT4.0