Skip to content

Latest commit

 

History

History
1476 lines (1072 loc) · 64.5 KB

WeChatMediaPlatformWebApiApi.md

File metadata and controls

1476 lines (1072 loc) · 64.5 KB

WeChatMediaPlatformWebApiApi

All URIs are relative to http://localhost

Method HTTP request Description
fetchMpArticleAdApiV1WechatMpWebFetchMpArticleAdGet GET /api/v1/wechat_mp/web/fetch_mp_article_ad 获取微信公众号广告/Get Wechat MP Article Ad
fetchMpArticleAdApiV1WechatMpWebFetchMpArticleAdGet_0 GET /api/v1/wechat_mp/web/fetch_mp_article_ad 获取微信公众号广告/Get Wechat MP Article Ad
fetchMpArticleCommentListApiV1WechatMpWebFetchMpArticleCommentListGet GET /api/v1/wechat_mp/web/fetch_mp_article_comment_list 获取微信公众号文章评论列表/Get Wechat MP Article Comment List
fetchMpArticleCommentListApiV1WechatMpWebFetchMpArticleCommentListGet_0 GET /api/v1/wechat_mp/web/fetch_mp_article_comment_list 获取微信公众号文章评论列表/Get Wechat MP Article Comment List
fetchMpArticleCommentReplyListApiV1WechatMpWebFetchMpArticleCommentReplyListGet GET /api/v1/wechat_mp/web/fetch_mp_article_comment_reply_list 获取微信公众号文章评论回复列表/Get Wechat MP Article Comment Reply List
fetchMpArticleCommentReplyListApiV1WechatMpWebFetchMpArticleCommentReplyListGet_0 GET /api/v1/wechat_mp/web/fetch_mp_article_comment_reply_list 获取微信公众号文章评论回复列表/Get Wechat MP Article Comment Reply List
fetchMpArticleDetailHtmlApiV1WechatMpWebFetchMpArticleDetailHtmlGet GET /api/v1/wechat_mp/web/fetch_mp_article_detail_html 获取微信公众号文章详情的HTML/Get Wechat MP Article Detail HTML
fetchMpArticleDetailHtmlApiV1WechatMpWebFetchMpArticleDetailHtmlGet_0 GET /api/v1/wechat_mp/web/fetch_mp_article_detail_html 获取微信公众号文章详情的HTML/Get Wechat MP Article Detail HTML
fetchMpArticleDetailJsonApiV1WechatMpWebFetchMpArticleDetailJsonGet GET /api/v1/wechat_mp/web/fetch_mp_article_detail_json 获取微信公众号文章详情的JSON/Get Wechat MP Article Detail JSON
fetchMpArticleDetailJsonApiV1WechatMpWebFetchMpArticleDetailJsonGet_0 GET /api/v1/wechat_mp/web/fetch_mp_article_detail_json 获取微信公众号文章详情的JSON/Get Wechat MP Article Detail JSON
fetchMpArticleListApiV1WechatMpWebFetchMpArticleListGet GET /api/v1/wechat_mp/web/fetch_mp_article_list 获取微信公众号文章列表/Get Wechat MP Article List
fetchMpArticleListApiV1WechatMpWebFetchMpArticleListGet_0 GET /api/v1/wechat_mp/web/fetch_mp_article_list 获取微信公众号文章列表/Get Wechat MP Article List
fetchMpArticleReadCountApiV1WechatMpWebFetchMpArticleReadCountGet GET /api/v1/wechat_mp/web/fetch_mp_article_read_count 获取微信公众号文章阅读量/Get Wechat MP Article Read Count
fetchMpArticleReadCountApiV1WechatMpWebFetchMpArticleReadCountGet_0 GET /api/v1/wechat_mp/web/fetch_mp_article_read_count 获取微信公众号文章阅读量/Get Wechat MP Article Read Count
fetchMpArticleUrlApiV1WechatMpWebFetchMpArticleUrlGet GET /api/v1/wechat_mp/web/fetch_mp_article_url 获取微信公众号文章永久链接/Get Wechat MP Article URL
fetchMpArticleUrlApiV1WechatMpWebFetchMpArticleUrlGet_0 GET /api/v1/wechat_mp/web/fetch_mp_article_url 获取微信公众号文章永久链接/Get Wechat MP Article URL
fetchMpArticleUrlConversionApiV1WechatMpWebFetchMpArticleUrlConversionGet GET /api/v1/wechat_mp/web/fetch_mp_article_url_conversion 获取微信公众号长链接转短链接/Get Wechat MP Long URL to Short URL
fetchMpArticleUrlConversionApiV1WechatMpWebFetchMpArticleUrlConversionGet_0 GET /api/v1/wechat_mp/web/fetch_mp_article_url_conversion 获取微信公众号长链接转短链接/Get Wechat MP Long URL to Short URL
fetchMpRelatedArticlesApiV1WechatMpWebFetchMpRelatedArticlesGet GET /api/v1/wechat_mp/web/fetch_mp_related_articles 获取微信公众号关联文章/Get Wechat MP Related Articles
fetchMpRelatedArticlesApiV1WechatMpWebFetchMpRelatedArticlesGet_0 GET /api/v1/wechat_mp/web/fetch_mp_related_articles 获取微信公众号关联文章/Get Wechat MP Related Articles

fetchMpArticleAdApiV1WechatMpWebFetchMpArticleAdGet

ResponseModel fetchMpArticleAdApiV1WechatMpWebFetchMpArticleAdGet(url)

获取微信公众号广告/Get Wechat MP Article Ad

[中文] ### 用途: - 获取微信公众号广告 ### 参数: - url: 文章链接 ### 返回: - 广告 # [English] ### Purpose: - Get Wechat MP Article Ad ### Parameters: - url: Article URL ### Returns: - Ad # [示例/Example] url = "https://mp.weixin.qq.com/s/hrTDuwh0pWyJFYC93kKCrg\"

Example

// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.WeChatMediaPlatformWebApiApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost");
        
        // Configure HTTP bearer authorization: bearer
        HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
        bearer.setBearerToken("BEARER TOKEN");

        WeChatMediaPlatformWebApiApi apiInstance = new WeChatMediaPlatformWebApiApi(defaultClient);
        String url = https://mp.weixin.qq.com/s/hrTDuwh0pWyJFYC93kKCrg; // String | 文章链接/Article URL
        try {
            ResponseModel result = apiInstance.fetchMpArticleAdApiV1WechatMpWebFetchMpArticleAdGet(url);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WeChatMediaPlatformWebApiApi#fetchMpArticleAdApiV1WechatMpWebFetchMpArticleAdGet");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
url String 文章链接/Article URL

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

fetchMpArticleAdApiV1WechatMpWebFetchMpArticleAdGet_0

ResponseModel fetchMpArticleAdApiV1WechatMpWebFetchMpArticleAdGet_0(url)

获取微信公众号广告/Get Wechat MP Article Ad

[中文] ### 用途: - 获取微信公众号广告 ### 参数: - url: 文章链接 ### 返回: - 广告 # [English] ### Purpose: - Get Wechat MP Article Ad ### Parameters: - url: Article URL ### Returns: - Ad # [示例/Example] url = "https://mp.weixin.qq.com/s/hrTDuwh0pWyJFYC93kKCrg\"

Example

// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.WeChatMediaPlatformWebApiApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost");
        
        // Configure HTTP bearer authorization: bearer
        HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
        bearer.setBearerToken("BEARER TOKEN");

        WeChatMediaPlatformWebApiApi apiInstance = new WeChatMediaPlatformWebApiApi(defaultClient);
        String url = https://mp.weixin.qq.com/s/hrTDuwh0pWyJFYC93kKCrg; // String | 文章链接/Article URL
        try {
            ResponseModel result = apiInstance.fetchMpArticleAdApiV1WechatMpWebFetchMpArticleAdGet_0(url);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WeChatMediaPlatformWebApiApi#fetchMpArticleAdApiV1WechatMpWebFetchMpArticleAdGet_0");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
url String 文章链接/Article URL

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

fetchMpArticleCommentListApiV1WechatMpWebFetchMpArticleCommentListGet

ResponseModel fetchMpArticleCommentListApiV1WechatMpWebFetchMpArticleCommentListGet(url, commentId, offset)

获取微信公众号文章评论列表/Get Wechat MP Article Comment List

[中文] ### 用途: - 获取微信公众号文章评论列表 ### 参数: - url: 文章链接 - comment_id: 评论ID - offset: 偏移量 ### 返回: - 评论列表 # [English] ### Purpose: - Get Wechat MP Article Comment List ### Parameters: - url: Article URL - comment_id: Comment ID - offset: Offset ### Returns: - Comment List # [示例/Example] url = "https://mp.weixin.qq.com/s/Ko5V9jw9kwL8TO6Q7J3UqQ\" comment_id = "" offset = "0"

Example

// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.WeChatMediaPlatformWebApiApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost");
        
        // Configure HTTP bearer authorization: bearer
        HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
        bearer.setBearerToken("BEARER TOKEN");

        WeChatMediaPlatformWebApiApi apiInstance = new WeChatMediaPlatformWebApiApi(defaultClient);
        String url = https://mp.weixin.qq.com/s/Ko5V9jw9kwL8TO6Q7J3UqQ; // String | 文章链接/Article URL
        String commentId = "\"\""; // String | 评论ID/Comment ID
        String offset = "\"0\""; // String | 偏移量/Offset
        try {
            ResponseModel result = apiInstance.fetchMpArticleCommentListApiV1WechatMpWebFetchMpArticleCommentListGet(url, commentId, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WeChatMediaPlatformWebApiApi#fetchMpArticleCommentListApiV1WechatMpWebFetchMpArticleCommentListGet");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
url String 文章链接/Article URL
commentId String 评论ID/Comment ID [optional] [default to ""]
offset String 偏移量/Offset [optional] [default to "0"]

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

fetchMpArticleCommentListApiV1WechatMpWebFetchMpArticleCommentListGet_0

ResponseModel fetchMpArticleCommentListApiV1WechatMpWebFetchMpArticleCommentListGet_0(url, commentId, offset)

获取微信公众号文章评论列表/Get Wechat MP Article Comment List

[中文] ### 用途: - 获取微信公众号文章评论列表 ### 参数: - url: 文章链接 - comment_id: 评论ID - offset: 偏移量 ### 返回: - 评论列表 # [English] ### Purpose: - Get Wechat MP Article Comment List ### Parameters: - url: Article URL - comment_id: Comment ID - offset: Offset ### Returns: - Comment List # [示例/Example] url = "https://mp.weixin.qq.com/s/Ko5V9jw9kwL8TO6Q7J3UqQ\" comment_id = "" offset = "0"

Example

// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.WeChatMediaPlatformWebApiApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost");
        
        // Configure HTTP bearer authorization: bearer
        HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
        bearer.setBearerToken("BEARER TOKEN");

        WeChatMediaPlatformWebApiApi apiInstance = new WeChatMediaPlatformWebApiApi(defaultClient);
        String url = https://mp.weixin.qq.com/s/Ko5V9jw9kwL8TO6Q7J3UqQ; // String | 文章链接/Article URL
        String commentId = "\"\""; // String | 评论ID/Comment ID
        String offset = "\"0\""; // String | 偏移量/Offset
        try {
            ResponseModel result = apiInstance.fetchMpArticleCommentListApiV1WechatMpWebFetchMpArticleCommentListGet_0(url, commentId, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WeChatMediaPlatformWebApiApi#fetchMpArticleCommentListApiV1WechatMpWebFetchMpArticleCommentListGet_0");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
url String 文章链接/Article URL
commentId String 评论ID/Comment ID [optional] [default to ""]
offset String 偏移量/Offset [optional] [default to "0"]

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

fetchMpArticleCommentReplyListApiV1WechatMpWebFetchMpArticleCommentReplyListGet

ResponseModel fetchMpArticleCommentReplyListApiV1WechatMpWebFetchMpArticleCommentReplyListGet(commentId, contentId, url, offset)

获取微信公众号文章评论回复列表/Get Wechat MP Article Comment Reply List

[中文] ### 用途: - 获取微信公众号文章评论回复列表 ### 参数: - url: 文章链接 - comment_id: 评论ID - content_id: 内容ID - offset: 偏移量 ### 返回: - 评论回复列表 # [English] ### Purpose: - Get Wechat MP Article Comment Reply List ### Parameters: - url: Article URL - comment_id: Comment ID - content_id: Content ID - offset: Offset ### Returns: - Comment Reply List # [示例/Example] url = "https://mp.weixin.qq.com/s/RCjkQlkRS4oKZ0GAT9slzA\" comment_id = "3601466901697855492" content_id = "6387234930341970671" offset = "0"

Example

// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.WeChatMediaPlatformWebApiApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost");
        
        // Configure HTTP bearer authorization: bearer
        HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
        bearer.setBearerToken("BEARER TOKEN");

        WeChatMediaPlatformWebApiApi apiInstance = new WeChatMediaPlatformWebApiApi(defaultClient);
        String commentId = 3601466901697855492; // String | 评论ID/Comment ID
        String contentId = 6387234930341970671; // String | 内容ID/Content ID
        String url = "\"https://mp.weixin.qq.com/s/Ko5V9jw9kwL8TO6Q7J3UqQ\""; // String | 文章链接/Article URL
        String offset = "\"0\""; // String | 偏移量/Offset
        try {
            ResponseModel result = apiInstance.fetchMpArticleCommentReplyListApiV1WechatMpWebFetchMpArticleCommentReplyListGet(commentId, contentId, url, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WeChatMediaPlatformWebApiApi#fetchMpArticleCommentReplyListApiV1WechatMpWebFetchMpArticleCommentReplyListGet");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
commentId String 评论ID/Comment ID
contentId String 内容ID/Content ID
url String 文章链接/Article URL [optional] [default to "https://mp.weixin.qq.com/s/Ko5V9jw9kwL8TO6Q7J3UqQ"]
offset String 偏移量/Offset [optional] [default to "0"]

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

fetchMpArticleCommentReplyListApiV1WechatMpWebFetchMpArticleCommentReplyListGet_0

ResponseModel fetchMpArticleCommentReplyListApiV1WechatMpWebFetchMpArticleCommentReplyListGet_0(commentId, contentId, url, offset)

获取微信公众号文章评论回复列表/Get Wechat MP Article Comment Reply List

[中文] ### 用途: - 获取微信公众号文章评论回复列表 ### 参数: - url: 文章链接 - comment_id: 评论ID - content_id: 内容ID - offset: 偏移量 ### 返回: - 评论回复列表 # [English] ### Purpose: - Get Wechat MP Article Comment Reply List ### Parameters: - url: Article URL - comment_id: Comment ID - content_id: Content ID - offset: Offset ### Returns: - Comment Reply List # [示例/Example] url = "https://mp.weixin.qq.com/s/RCjkQlkRS4oKZ0GAT9slzA\" comment_id = "3601466901697855492" content_id = "6387234930341970671" offset = "0"

Example

// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.WeChatMediaPlatformWebApiApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost");
        
        // Configure HTTP bearer authorization: bearer
        HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
        bearer.setBearerToken("BEARER TOKEN");

        WeChatMediaPlatformWebApiApi apiInstance = new WeChatMediaPlatformWebApiApi(defaultClient);
        String commentId = 3601466901697855492; // String | 评论ID/Comment ID
        String contentId = 6387234930341970671; // String | 内容ID/Content ID
        String url = "\"https://mp.weixin.qq.com/s/Ko5V9jw9kwL8TO6Q7J3UqQ\""; // String | 文章链接/Article URL
        String offset = "\"0\""; // String | 偏移量/Offset
        try {
            ResponseModel result = apiInstance.fetchMpArticleCommentReplyListApiV1WechatMpWebFetchMpArticleCommentReplyListGet_0(commentId, contentId, url, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WeChatMediaPlatformWebApiApi#fetchMpArticleCommentReplyListApiV1WechatMpWebFetchMpArticleCommentReplyListGet_0");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
commentId String 评论ID/Comment ID
contentId String 内容ID/Content ID
url String 文章链接/Article URL [optional] [default to "https://mp.weixin.qq.com/s/Ko5V9jw9kwL8TO6Q7J3UqQ"]
offset String 偏移量/Offset [optional] [default to "0"]

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

fetchMpArticleDetailHtmlApiV1WechatMpWebFetchMpArticleDetailHtmlGet

ResponseModel fetchMpArticleDetailHtmlApiV1WechatMpWebFetchMpArticleDetailHtmlGet(url)

获取微信公众号文章详情的HTML/Get Wechat MP Article Detail HTML

[中文] ### 用途: - 获取微信公众号文章详情的HTML,如果你需要获取详细的JSON格式数据,请使用`/api/v1/wechat_mp/web/fetch_mp_article_detail_json`接口 - 此接口收费贵,价格:0.01$/次 ### 参数: - url: 文章链接 ### 返回: - 文章详情的HTML # [English] ### Purpose: - Get WeChat MP Article Detail, if you need detailed JSON format data, please use the `/api/v1/wechat_mp/web/fetch_mp_article_detail_json` interface - This interface is more expensive, price: 0.01$/time ### Parameters: - url: Article URL ### Returns: - Article Detail HTML # [示例/Example] url = "https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw\"

Example

// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.WeChatMediaPlatformWebApiApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost");
        
        // Configure HTTP bearer authorization: bearer
        HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
        bearer.setBearerToken("BEARER TOKEN");

        WeChatMediaPlatformWebApiApi apiInstance = new WeChatMediaPlatformWebApiApi(defaultClient);
        String url = https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw; // String | 文章链接/Article URL
        try {
            ResponseModel result = apiInstance.fetchMpArticleDetailHtmlApiV1WechatMpWebFetchMpArticleDetailHtmlGet(url);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WeChatMediaPlatformWebApiApi#fetchMpArticleDetailHtmlApiV1WechatMpWebFetchMpArticleDetailHtmlGet");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
url String 文章链接/Article URL

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

fetchMpArticleDetailHtmlApiV1WechatMpWebFetchMpArticleDetailHtmlGet_0

ResponseModel fetchMpArticleDetailHtmlApiV1WechatMpWebFetchMpArticleDetailHtmlGet_0(url)

获取微信公众号文章详情的HTML/Get Wechat MP Article Detail HTML

[中文] ### 用途: - 获取微信公众号文章详情的HTML,如果你需要获取详细的JSON格式数据,请使用`/api/v1/wechat_mp/web/fetch_mp_article_detail_json`接口 - 此接口收费贵,价格:0.01$/次 ### 参数: - url: 文章链接 ### 返回: - 文章详情的HTML # [English] ### Purpose: - Get WeChat MP Article Detail, if you need detailed JSON format data, please use the `/api/v1/wechat_mp/web/fetch_mp_article_detail_json` interface - This interface is more expensive, price: 0.01$/time ### Parameters: - url: Article URL ### Returns: - Article Detail HTML # [示例/Example] url = "https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw\"

Example

// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.WeChatMediaPlatformWebApiApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost");
        
        // Configure HTTP bearer authorization: bearer
        HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
        bearer.setBearerToken("BEARER TOKEN");

        WeChatMediaPlatformWebApiApi apiInstance = new WeChatMediaPlatformWebApiApi(defaultClient);
        String url = https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw; // String | 文章链接/Article URL
        try {
            ResponseModel result = apiInstance.fetchMpArticleDetailHtmlApiV1WechatMpWebFetchMpArticleDetailHtmlGet_0(url);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WeChatMediaPlatformWebApiApi#fetchMpArticleDetailHtmlApiV1WechatMpWebFetchMpArticleDetailHtmlGet_0");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
url String 文章链接/Article URL

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

fetchMpArticleDetailJsonApiV1WechatMpWebFetchMpArticleDetailJsonGet

ResponseModel fetchMpArticleDetailJsonApiV1WechatMpWebFetchMpArticleDetailJsonGet(url)

获取微信公众号文章详情的JSON/Get Wechat MP Article Detail JSON

[中文] ### 用途: - 获取微信公众号文章详情的JSON格式数据 - 此接口收费便宜,如果你需要获取详细的HTML格式数据,请使用`/api/v1/wechat_mp/web/fetch_mp_article_detail_html`接口,但是此接口收费更贵。 - 价格:0.001$/次 ### 参数: - url: 文章链接 ### 返回: - 文章详情的HTML # [English] ### Purpose: - Get WeChat MP Article Detail in JSON format - This interface is cheaper, if you need detailed HTML format data, please use the `/api/v1/wechat_mp/web/fetch_mp_article_detail_html` interface, but this interface is more expensive. - Price: 0.001$/time ### Parameters: - url: Article URL ### Returns: - Article Detail HTML # [示例/Example] url = "https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw\"

Example

// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.WeChatMediaPlatformWebApiApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost");
        
        // Configure HTTP bearer authorization: bearer
        HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
        bearer.setBearerToken("BEARER TOKEN");

        WeChatMediaPlatformWebApiApi apiInstance = new WeChatMediaPlatformWebApiApi(defaultClient);
        String url = https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw; // String | 文章链接/Article URL
        try {
            ResponseModel result = apiInstance.fetchMpArticleDetailJsonApiV1WechatMpWebFetchMpArticleDetailJsonGet(url);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WeChatMediaPlatformWebApiApi#fetchMpArticleDetailJsonApiV1WechatMpWebFetchMpArticleDetailJsonGet");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
url String 文章链接/Article URL

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

fetchMpArticleDetailJsonApiV1WechatMpWebFetchMpArticleDetailJsonGet_0

ResponseModel fetchMpArticleDetailJsonApiV1WechatMpWebFetchMpArticleDetailJsonGet_0(url)

获取微信公众号文章详情的JSON/Get Wechat MP Article Detail JSON

[中文] ### 用途: - 获取微信公众号文章详情的JSON格式数据 - 此接口收费便宜,如果你需要获取详细的HTML格式数据,请使用`/api/v1/wechat_mp/web/fetch_mp_article_detail_html`接口,但是此接口收费更贵。 - 价格:0.001$/次 ### 参数: - url: 文章链接 ### 返回: - 文章详情的HTML # [English] ### Purpose: - Get WeChat MP Article Detail in JSON format - This interface is cheaper, if you need detailed HTML format data, please use the `/api/v1/wechat_mp/web/fetch_mp_article_detail_html` interface, but this interface is more expensive. - Price: 0.001$/time ### Parameters: - url: Article URL ### Returns: - Article Detail HTML # [示例/Example] url = "https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw\"

Example

// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.WeChatMediaPlatformWebApiApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost");
        
        // Configure HTTP bearer authorization: bearer
        HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
        bearer.setBearerToken("BEARER TOKEN");

        WeChatMediaPlatformWebApiApi apiInstance = new WeChatMediaPlatformWebApiApi(defaultClient);
        String url = https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw; // String | 文章链接/Article URL
        try {
            ResponseModel result = apiInstance.fetchMpArticleDetailJsonApiV1WechatMpWebFetchMpArticleDetailJsonGet_0(url);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WeChatMediaPlatformWebApiApi#fetchMpArticleDetailJsonApiV1WechatMpWebFetchMpArticleDetailJsonGet_0");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
url String 文章链接/Article URL

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

fetchMpArticleListApiV1WechatMpWebFetchMpArticleListGet

ResponseModel fetchMpArticleListApiV1WechatMpWebFetchMpArticleListGet(ghid, offset)

获取微信公众号文章列表/Get Wechat MP Article List

[中文] ### 用途: - 获取微信公众号文章列表 ### 参数: - ghid: 公众号ID - offset: 偏移量 ### 返回: - 文章列表 # [English] ### Purpose: - Get Wechat MP Article List ### Parameters: - ghid: MP ID - offset: Offset ### Returns: - Article List # [示例/Example] ghid = "gh_a3d35d4c9d3f" offset = ""

Example

// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.WeChatMediaPlatformWebApiApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost");
        
        // Configure HTTP bearer authorization: bearer
        HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
        bearer.setBearerToken("BEARER TOKEN");

        WeChatMediaPlatformWebApiApi apiInstance = new WeChatMediaPlatformWebApiApi(defaultClient);
        String ghid = gh_a3d35d4c9d3f; // String | 公众号ID/MP ID
        String offset = "\"\""; // String | 偏移量/Offset
        try {
            ResponseModel result = apiInstance.fetchMpArticleListApiV1WechatMpWebFetchMpArticleListGet(ghid, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WeChatMediaPlatformWebApiApi#fetchMpArticleListApiV1WechatMpWebFetchMpArticleListGet");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
ghid String 公众号ID/MP ID
offset String 偏移量/Offset [optional] [default to ""]

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

fetchMpArticleListApiV1WechatMpWebFetchMpArticleListGet_0

ResponseModel fetchMpArticleListApiV1WechatMpWebFetchMpArticleListGet_0(ghid, offset)

获取微信公众号文章列表/Get Wechat MP Article List

[中文] ### 用途: - 获取微信公众号文章列表 ### 参数: - ghid: 公众号ID - offset: 偏移量 ### 返回: - 文章列表 # [English] ### Purpose: - Get Wechat MP Article List ### Parameters: - ghid: MP ID - offset: Offset ### Returns: - Article List # [示例/Example] ghid = "gh_a3d35d4c9d3f" offset = ""

Example

// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.WeChatMediaPlatformWebApiApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost");
        
        // Configure HTTP bearer authorization: bearer
        HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
        bearer.setBearerToken("BEARER TOKEN");

        WeChatMediaPlatformWebApiApi apiInstance = new WeChatMediaPlatformWebApiApi(defaultClient);
        String ghid = gh_a3d35d4c9d3f; // String | 公众号ID/MP ID
        String offset = "\"\""; // String | 偏移量/Offset
        try {
            ResponseModel result = apiInstance.fetchMpArticleListApiV1WechatMpWebFetchMpArticleListGet_0(ghid, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WeChatMediaPlatformWebApiApi#fetchMpArticleListApiV1WechatMpWebFetchMpArticleListGet_0");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
ghid String 公众号ID/MP ID
offset String 偏移量/Offset [optional] [default to ""]

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

fetchMpArticleReadCountApiV1WechatMpWebFetchMpArticleReadCountGet

ResponseModel fetchMpArticleReadCountApiV1WechatMpWebFetchMpArticleReadCountGet(url, commentId)

获取微信公众号文章阅读量/Get Wechat MP Article Read Count

[中文] ### 用途: - 获取微信公众号文章阅读量 ### 参数: - url: 文章链接 - comment_id: 评论ID ### 返回: - 阅读量 # [English] ### Purpose: - Get Wechat MP Article Read Count ### Parameters: - url: Article URL - comment_id: Comment ID ### Returns: - Read Count # [示例/Example] url = "https://mp.weixin.qq.com/s/hrTDuwh0pWyJFYC93kKCrg\" comment_id = "3363399664632332289"

Example

// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.WeChatMediaPlatformWebApiApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost");
        
        // Configure HTTP bearer authorization: bearer
        HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
        bearer.setBearerToken("BEARER TOKEN");

        WeChatMediaPlatformWebApiApi apiInstance = new WeChatMediaPlatformWebApiApi(defaultClient);
        String url = https://mp.weixin.qq.com/s/hrTDuwh0pWyJFYC93kKCrg; // String | 文章链接/Article URL
        String commentId = "commentId_example"; // String | 评论ID/Comment ID
        try {
            ResponseModel result = apiInstance.fetchMpArticleReadCountApiV1WechatMpWebFetchMpArticleReadCountGet(url, commentId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WeChatMediaPlatformWebApiApi#fetchMpArticleReadCountApiV1WechatMpWebFetchMpArticleReadCountGet");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
url String 文章链接/Article URL
commentId String 评论ID/Comment ID

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

fetchMpArticleReadCountApiV1WechatMpWebFetchMpArticleReadCountGet_0

ResponseModel fetchMpArticleReadCountApiV1WechatMpWebFetchMpArticleReadCountGet_0(url, commentId)

获取微信公众号文章阅读量/Get Wechat MP Article Read Count

[中文] ### 用途: - 获取微信公众号文章阅读量 ### 参数: - url: 文章链接 - comment_id: 评论ID ### 返回: - 阅读量 # [English] ### Purpose: - Get Wechat MP Article Read Count ### Parameters: - url: Article URL - comment_id: Comment ID ### Returns: - Read Count # [示例/Example] url = "https://mp.weixin.qq.com/s/hrTDuwh0pWyJFYC93kKCrg\" comment_id = "3363399664632332289"

Example

// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.WeChatMediaPlatformWebApiApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost");
        
        // Configure HTTP bearer authorization: bearer
        HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
        bearer.setBearerToken("BEARER TOKEN");

        WeChatMediaPlatformWebApiApi apiInstance = new WeChatMediaPlatformWebApiApi(defaultClient);
        String url = https://mp.weixin.qq.com/s/hrTDuwh0pWyJFYC93kKCrg; // String | 文章链接/Article URL
        String commentId = "commentId_example"; // String | 评论ID/Comment ID
        try {
            ResponseModel result = apiInstance.fetchMpArticleReadCountApiV1WechatMpWebFetchMpArticleReadCountGet_0(url, commentId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WeChatMediaPlatformWebApiApi#fetchMpArticleReadCountApiV1WechatMpWebFetchMpArticleReadCountGet_0");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
url String 文章链接/Article URL
commentId String 评论ID/Comment ID

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

fetchMpArticleUrlApiV1WechatMpWebFetchMpArticleUrlGet

ResponseModel fetchMpArticleUrlApiV1WechatMpWebFetchMpArticleUrlGet(sogouUrl)

获取微信公众号文章永久链接/Get Wechat MP Article URL

Example

// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.WeChatMediaPlatformWebApiApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost");
        
        // Configure HTTP bearer authorization: bearer
        HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
        bearer.setBearerToken("BEARER TOKEN");

        WeChatMediaPlatformWebApiApi apiInstance = new WeChatMediaPlatformWebApiApi(defaultClient);
        String sogouUrl = https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS5mzcw64XRlRaPIdMgILsPEBI9djq3byAlqXa8Fplpd9bV3r44ewJj5IFttt-prmTSHShu8JtNlpDYR_z_1xvD2J_XrGTUriRYOOY2mt9pZSIUQEepUVTybxAOW4P5fEPd23R0CgK6W3KEODtIkcv1U5w5VkZ8a7_lyyAqreiCgr1YH9mz_7mzFDl6rX6ZnkVYNsUHV_OmaXBUCqpZ1Pa6YO8fIRwtipOg..&type=2&query=deepseek&token=C2E90D2050EB6EA5C2C4EDB1541D855FC322013E67C5DC5A&k=4&h=k; // String | 搜狗链接/Sogou URL
        try {
            ResponseModel result = apiInstance.fetchMpArticleUrlApiV1WechatMpWebFetchMpArticleUrlGet(sogouUrl);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WeChatMediaPlatformWebApiApi#fetchMpArticleUrlApiV1WechatMpWebFetchMpArticleUrlGet");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
sogouUrl String 搜狗链接/Sogou URL

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

fetchMpArticleUrlApiV1WechatMpWebFetchMpArticleUrlGet_0

ResponseModel fetchMpArticleUrlApiV1WechatMpWebFetchMpArticleUrlGet_0(sogouUrl)

获取微信公众号文章永久链接/Get Wechat MP Article URL

Example

// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.WeChatMediaPlatformWebApiApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost");
        
        // Configure HTTP bearer authorization: bearer
        HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
        bearer.setBearerToken("BEARER TOKEN");

        WeChatMediaPlatformWebApiApi apiInstance = new WeChatMediaPlatformWebApiApi(defaultClient);
        String sogouUrl = https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS5mzcw64XRlRaPIdMgILsPEBI9djq3byAlqXa8Fplpd9bV3r44ewJj5IFttt-prmTSHShu8JtNlpDYR_z_1xvD2J_XrGTUriRYOOY2mt9pZSIUQEepUVTybxAOW4P5fEPd23R0CgK6W3KEODtIkcv1U5w5VkZ8a7_lyyAqreiCgr1YH9mz_7mzFDl6rX6ZnkVYNsUHV_OmaXBUCqpZ1Pa6YO8fIRwtipOg..&type=2&query=deepseek&token=C2E90D2050EB6EA5C2C4EDB1541D855FC322013E67C5DC5A&k=4&h=k; // String | 搜狗链接/Sogou URL
        try {
            ResponseModel result = apiInstance.fetchMpArticleUrlApiV1WechatMpWebFetchMpArticleUrlGet_0(sogouUrl);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WeChatMediaPlatformWebApiApi#fetchMpArticleUrlApiV1WechatMpWebFetchMpArticleUrlGet_0");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
sogouUrl String 搜狗链接/Sogou URL

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

fetchMpArticleUrlConversionApiV1WechatMpWebFetchMpArticleUrlConversionGet

ResponseModel fetchMpArticleUrlConversionApiV1WechatMpWebFetchMpArticleUrlConversionGet(url)

获取微信公众号长链接转短链接/Get Wechat MP Long URL to Short URL

[中文] ### 用途: - 获取微信公众号长链接转短链接 ### 参数: - url: 文章链接 ### 返回: - 短链接 # [English] ### Purpose: - Get Wechat MP Long URL to Short URL ### Parameters: - url: Article URL ### Returns: - Short URL # [示例/Example] url = "http://mp.weixin.qq.com/s?__biz=MzIyMDQzMTM4Mg==&mid=2247504868&idx=1&sn=37ee48875df1be54cb766783177ce61d\"

Example

// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.WeChatMediaPlatformWebApiApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost");
        
        // Configure HTTP bearer authorization: bearer
        HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
        bearer.setBearerToken("BEARER TOKEN");

        WeChatMediaPlatformWebApiApi apiInstance = new WeChatMediaPlatformWebApiApi(defaultClient);
        String url = http://mp.weixin.qq.com/s?__biz=MzIyMDQzMTM4Mg==&mid=2247504868&idx=1&sn=37ee48875df1be54cb766783177ce61d; // String | 文章链接/Article URL
        try {
            ResponseModel result = apiInstance.fetchMpArticleUrlConversionApiV1WechatMpWebFetchMpArticleUrlConversionGet(url);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WeChatMediaPlatformWebApiApi#fetchMpArticleUrlConversionApiV1WechatMpWebFetchMpArticleUrlConversionGet");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
url String 文章链接/Article URL

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

fetchMpArticleUrlConversionApiV1WechatMpWebFetchMpArticleUrlConversionGet_0

ResponseModel fetchMpArticleUrlConversionApiV1WechatMpWebFetchMpArticleUrlConversionGet_0(url)

获取微信公众号长链接转短链接/Get Wechat MP Long URL to Short URL

[中文] ### 用途: - 获取微信公众号长链接转短链接 ### 参数: - url: 文章链接 ### 返回: - 短链接 # [English] ### Purpose: - Get Wechat MP Long URL to Short URL ### Parameters: - url: Article URL ### Returns: - Short URL # [示例/Example] url = "http://mp.weixin.qq.com/s?__biz=MzIyMDQzMTM4Mg==&mid=2247504868&idx=1&sn=37ee48875df1be54cb766783177ce61d\"

Example

// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.WeChatMediaPlatformWebApiApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost");
        
        // Configure HTTP bearer authorization: bearer
        HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
        bearer.setBearerToken("BEARER TOKEN");

        WeChatMediaPlatformWebApiApi apiInstance = new WeChatMediaPlatformWebApiApi(defaultClient);
        String url = http://mp.weixin.qq.com/s?__biz=MzIyMDQzMTM4Mg==&mid=2247504868&idx=1&sn=37ee48875df1be54cb766783177ce61d; // String | 文章链接/Article URL
        try {
            ResponseModel result = apiInstance.fetchMpArticleUrlConversionApiV1WechatMpWebFetchMpArticleUrlConversionGet_0(url);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WeChatMediaPlatformWebApiApi#fetchMpArticleUrlConversionApiV1WechatMpWebFetchMpArticleUrlConversionGet_0");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
url String 文章链接/Article URL

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

fetchMpRelatedArticlesApiV1WechatMpWebFetchMpRelatedArticlesGet

ResponseModel fetchMpRelatedArticlesApiV1WechatMpWebFetchMpRelatedArticlesGet(url)

获取微信公众号关联文章/Get Wechat MP Related Articles

[中文] ### 用途: - 获取微信公众号关联文章 ### 参数: - url: 文章链接 ### 返回: - 关联文章 # [English] ### Purpose: - Get Wechat MP Related Articles ### Parameters: - url: Article URL ### Returns: - Related Articles # [示例/Example] url = "https://mp.weixin.qq.com/s/Ko5V9jw9kwL8TO6Q7J3UqQ\"

Example

// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.WeChatMediaPlatformWebApiApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost");
        
        // Configure HTTP bearer authorization: bearer
        HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
        bearer.setBearerToken("BEARER TOKEN");

        WeChatMediaPlatformWebApiApi apiInstance = new WeChatMediaPlatformWebApiApi(defaultClient);
        String url = https://mp.weixin.qq.com/s/Ko5V9jw9kwL8TO6Q7J3UqQ; // String | 文章链接/Article URL
        try {
            ResponseModel result = apiInstance.fetchMpRelatedArticlesApiV1WechatMpWebFetchMpRelatedArticlesGet(url);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WeChatMediaPlatformWebApiApi#fetchMpRelatedArticlesApiV1WechatMpWebFetchMpRelatedArticlesGet");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
url String 文章链接/Article URL

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

fetchMpRelatedArticlesApiV1WechatMpWebFetchMpRelatedArticlesGet_0

ResponseModel fetchMpRelatedArticlesApiV1WechatMpWebFetchMpRelatedArticlesGet_0(url)

获取微信公众号关联文章/Get Wechat MP Related Articles

[中文] ### 用途: - 获取微信公众号关联文章 ### 参数: - url: 文章链接 ### 返回: - 关联文章 # [English] ### Purpose: - Get Wechat MP Related Articles ### Parameters: - url: Article URL ### Returns: - Related Articles # [示例/Example] url = "https://mp.weixin.qq.com/s/Ko5V9jw9kwL8TO6Q7J3UqQ\"

Example

// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.WeChatMediaPlatformWebApiApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost");
        
        // Configure HTTP bearer authorization: bearer
        HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
        bearer.setBearerToken("BEARER TOKEN");

        WeChatMediaPlatformWebApiApi apiInstance = new WeChatMediaPlatformWebApiApi(defaultClient);
        String url = https://mp.weixin.qq.com/s/Ko5V9jw9kwL8TO6Q7J3UqQ; // String | 文章链接/Article URL
        try {
            ResponseModel result = apiInstance.fetchMpRelatedArticlesApiV1WechatMpWebFetchMpRelatedArticlesGet_0(url);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WeChatMediaPlatformWebApiApi#fetchMpRelatedArticlesApiV1WechatMpWebFetchMpRelatedArticlesGet_0");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
url String 文章链接/Article URL

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -