Skip to content

Latest commit

 

History

History
1516 lines (1132 loc) · 69.1 KB

File metadata and controls

1516 lines (1132 loc) · 69.1 KB

tikhub_sdk_v2.WeChatMediaPlatformWebAPIApi

All URIs are relative to http://localhost

Method HTTP request Description
fetch_mp_article_ad_api_v1_wechat_mp_web_fetch_mp_article_ad_get GET /api/v1/wechat_mp/web/fetch_mp_article_ad 获取微信公众号广告/Get Wechat MP Article Ad
fetch_mp_article_ad_api_v1_wechat_mp_web_fetch_mp_article_ad_get_0 GET /api/v1/wechat_mp/web/fetch_mp_article_ad 获取微信公众号广告/Get Wechat MP Article Ad
fetch_mp_article_comment_list_api_v1_wechat_mp_web_fetch_mp_article_comment_list_get GET /api/v1/wechat_mp/web/fetch_mp_article_comment_list 获取微信公众号文章评论列表/Get Wechat MP Article Comment List
fetch_mp_article_comment_list_api_v1_wechat_mp_web_fetch_mp_article_comment_list_get_0 GET /api/v1/wechat_mp/web/fetch_mp_article_comment_list 获取微信公众号文章评论列表/Get Wechat MP Article Comment List
fetch_mp_article_comment_reply_list_api_v1_wechat_mp_web_fetch_mp_article_comment_reply_list_get GET /api/v1/wechat_mp/web/fetch_mp_article_comment_reply_list 获取微信公众号文章评论回复列表/Get Wechat MP Article Comment Reply List
fetch_mp_article_comment_reply_list_api_v1_wechat_mp_web_fetch_mp_article_comment_reply_list_get_0 GET /api/v1/wechat_mp/web/fetch_mp_article_comment_reply_list 获取微信公众号文章评论回复列表/Get Wechat MP Article Comment Reply List
fetch_mp_article_detail_html_api_v1_wechat_mp_web_fetch_mp_article_detail_html_get GET /api/v1/wechat_mp/web/fetch_mp_article_detail_html 获取微信公众号文章详情的HTML/Get Wechat MP Article Detail HTML
fetch_mp_article_detail_html_api_v1_wechat_mp_web_fetch_mp_article_detail_html_get_0 GET /api/v1/wechat_mp/web/fetch_mp_article_detail_html 获取微信公众号文章详情的HTML/Get Wechat MP Article Detail HTML
fetch_mp_article_detail_json_api_v1_wechat_mp_web_fetch_mp_article_detail_json_get GET /api/v1/wechat_mp/web/fetch_mp_article_detail_json 获取微信公众号文章详情的JSON/Get Wechat MP Article Detail JSON
fetch_mp_article_detail_json_api_v1_wechat_mp_web_fetch_mp_article_detail_json_get_0 GET /api/v1/wechat_mp/web/fetch_mp_article_detail_json 获取微信公众号文章详情的JSON/Get Wechat MP Article Detail JSON
fetch_mp_article_list_api_v1_wechat_mp_web_fetch_mp_article_list_get GET /api/v1/wechat_mp/web/fetch_mp_article_list 获取微信公众号文章列表/Get Wechat MP Article List
fetch_mp_article_list_api_v1_wechat_mp_web_fetch_mp_article_list_get_0 GET /api/v1/wechat_mp/web/fetch_mp_article_list 获取微信公众号文章列表/Get Wechat MP Article List
fetch_mp_article_read_count_api_v1_wechat_mp_web_fetch_mp_article_read_count_get GET /api/v1/wechat_mp/web/fetch_mp_article_read_count 获取微信公众号文章阅读量/Get Wechat MP Article Read Count
fetch_mp_article_read_count_api_v1_wechat_mp_web_fetch_mp_article_read_count_get_0 GET /api/v1/wechat_mp/web/fetch_mp_article_read_count 获取微信公众号文章阅读量/Get Wechat MP Article Read Count
fetch_mp_article_url_api_v1_wechat_mp_web_fetch_mp_article_url_get GET /api/v1/wechat_mp/web/fetch_mp_article_url 获取微信公众号文章永久链接/Get Wechat MP Article URL
fetch_mp_article_url_api_v1_wechat_mp_web_fetch_mp_article_url_get_0 GET /api/v1/wechat_mp/web/fetch_mp_article_url 获取微信公众号文章永久链接/Get Wechat MP Article URL
fetch_mp_article_url_conversion_api_v1_wechat_mp_web_fetch_mp_article_url_conversion_get GET /api/v1/wechat_mp/web/fetch_mp_article_url_conversion 获取微信公众号长链接转短链接/Get Wechat MP Long URL to Short URL
fetch_mp_article_url_conversion_api_v1_wechat_mp_web_fetch_mp_article_url_conversion_get_0 GET /api/v1/wechat_mp/web/fetch_mp_article_url_conversion 获取微信公众号长链接转短链接/Get Wechat MP Long URL to Short URL
fetch_mp_related_articles_api_v1_wechat_mp_web_fetch_mp_related_articles_get GET /api/v1/wechat_mp/web/fetch_mp_related_articles 获取微信公众号关联文章/Get Wechat MP Related Articles
fetch_mp_related_articles_api_v1_wechat_mp_web_fetch_mp_related_articles_get_0 GET /api/v1/wechat_mp/web/fetch_mp_related_articles 获取微信公众号关联文章/Get Wechat MP Related Articles

fetch_mp_article_ad_api_v1_wechat_mp_web_fetch_mp_article_ad_get

ResponseModel fetch_mp_article_ad_api_v1_wechat_mp_web_fetch_mp_article_ad_get(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

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.WeChatMediaPlatformWebAPIApi(api_client)
    url = 'https://mp.weixin.qq.com/s/hrTDuwh0pWyJFYC93kKCrg' # str | 文章链接/Article URL

    try:
        # 获取微信公众号广告/Get Wechat MP Article Ad
        api_response = api_instance.fetch_mp_article_ad_api_v1_wechat_mp_web_fetch_mp_article_ad_get(url)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling WeChatMediaPlatformWebAPIApi->fetch_mp_article_ad_api_v1_wechat_mp_web_fetch_mp_article_ad_get: %s\n" % e)

Parameters

Name Type Description Notes
url str 文章链接/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 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_mp_article_ad_api_v1_wechat_mp_web_fetch_mp_article_ad_get_0

ResponseModel fetch_mp_article_ad_api_v1_wechat_mp_web_fetch_mp_article_ad_get_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

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.WeChatMediaPlatformWebAPIApi(api_client)
    url = 'https://mp.weixin.qq.com/s/hrTDuwh0pWyJFYC93kKCrg' # str | 文章链接/Article URL

    try:
        # 获取微信公众号广告/Get Wechat MP Article Ad
        api_response = api_instance.fetch_mp_article_ad_api_v1_wechat_mp_web_fetch_mp_article_ad_get_0(url)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling WeChatMediaPlatformWebAPIApi->fetch_mp_article_ad_api_v1_wechat_mp_web_fetch_mp_article_ad_get_0: %s\n" % e)

Parameters

Name Type Description Notes
url str 文章链接/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 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_mp_article_comment_list_api_v1_wechat_mp_web_fetch_mp_article_comment_list_get

ResponseModel fetch_mp_article_comment_list_api_v1_wechat_mp_web_fetch_mp_article_comment_list_get(url, comment_id=comment_id, offset=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

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.WeChatMediaPlatformWebAPIApi(api_client)
    url = 'https://mp.weixin.qq.com/s/Ko5V9jw9kwL8TO6Q7J3UqQ' # str | 文章链接/Article URL
comment_id = '' # str | 评论ID/Comment ID (optional) (default to '')
offset = '0' # str | 偏移量/Offset (optional) (default to '0')

    try:
        # 获取微信公众号文章评论列表/Get Wechat MP Article Comment List
        api_response = api_instance.fetch_mp_article_comment_list_api_v1_wechat_mp_web_fetch_mp_article_comment_list_get(url, comment_id=comment_id, offset=offset)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling WeChatMediaPlatformWebAPIApi->fetch_mp_article_comment_list_api_v1_wechat_mp_web_fetch_mp_article_comment_list_get: %s\n" % e)

Parameters

Name Type Description Notes
url str 文章链接/Article URL
comment_id str 评论ID/Comment ID [optional] [default to '']
offset str 偏移量/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 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_mp_article_comment_list_api_v1_wechat_mp_web_fetch_mp_article_comment_list_get_0

ResponseModel fetch_mp_article_comment_list_api_v1_wechat_mp_web_fetch_mp_article_comment_list_get_0(url, comment_id=comment_id, offset=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

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.WeChatMediaPlatformWebAPIApi(api_client)
    url = 'https://mp.weixin.qq.com/s/Ko5V9jw9kwL8TO6Q7J3UqQ' # str | 文章链接/Article URL
comment_id = '' # str | 评论ID/Comment ID (optional) (default to '')
offset = '0' # str | 偏移量/Offset (optional) (default to '0')

    try:
        # 获取微信公众号文章评论列表/Get Wechat MP Article Comment List
        api_response = api_instance.fetch_mp_article_comment_list_api_v1_wechat_mp_web_fetch_mp_article_comment_list_get_0(url, comment_id=comment_id, offset=offset)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling WeChatMediaPlatformWebAPIApi->fetch_mp_article_comment_list_api_v1_wechat_mp_web_fetch_mp_article_comment_list_get_0: %s\n" % e)

Parameters

Name Type Description Notes
url str 文章链接/Article URL
comment_id str 评论ID/Comment ID [optional] [default to '']
offset str 偏移量/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 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_mp_article_comment_reply_list_api_v1_wechat_mp_web_fetch_mp_article_comment_reply_list_get

ResponseModel fetch_mp_article_comment_reply_list_api_v1_wechat_mp_web_fetch_mp_article_comment_reply_list_get(comment_id, content_id, url=url, offset=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

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.WeChatMediaPlatformWebAPIApi(api_client)
    comment_id = '3601466901697855492' # str | 评论ID/Comment ID
content_id = '6387234930341970671' # str | 内容ID/Content ID
url = 'https://mp.weixin.qq.com/s/Ko5V9jw9kwL8TO6Q7J3UqQ' # str | 文章链接/Article URL (optional) (default to 'https://mp.weixin.qq.com/s/Ko5V9jw9kwL8TO6Q7J3UqQ')
offset = '0' # str | 偏移量/Offset (optional) (default to '0')

    try:
        # 获取微信公众号文章评论回复列表/Get Wechat MP Article Comment Reply List
        api_response = api_instance.fetch_mp_article_comment_reply_list_api_v1_wechat_mp_web_fetch_mp_article_comment_reply_list_get(comment_id, content_id, url=url, offset=offset)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling WeChatMediaPlatformWebAPIApi->fetch_mp_article_comment_reply_list_api_v1_wechat_mp_web_fetch_mp_article_comment_reply_list_get: %s\n" % e)

Parameters

Name Type Description Notes
comment_id str 评论ID/Comment ID
content_id str 内容ID/Content ID
url str 文章链接/Article URL [optional] [default to 'https://mp.weixin.qq.com/s/Ko5V9jw9kwL8TO6Q7J3UqQ']
offset str 偏移量/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 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_mp_article_comment_reply_list_api_v1_wechat_mp_web_fetch_mp_article_comment_reply_list_get_0

ResponseModel fetch_mp_article_comment_reply_list_api_v1_wechat_mp_web_fetch_mp_article_comment_reply_list_get_0(comment_id, content_id, url=url, offset=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

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.WeChatMediaPlatformWebAPIApi(api_client)
    comment_id = '3601466901697855492' # str | 评论ID/Comment ID
content_id = '6387234930341970671' # str | 内容ID/Content ID
url = 'https://mp.weixin.qq.com/s/Ko5V9jw9kwL8TO6Q7J3UqQ' # str | 文章链接/Article URL (optional) (default to 'https://mp.weixin.qq.com/s/Ko5V9jw9kwL8TO6Q7J3UqQ')
offset = '0' # str | 偏移量/Offset (optional) (default to '0')

    try:
        # 获取微信公众号文章评论回复列表/Get Wechat MP Article Comment Reply List
        api_response = api_instance.fetch_mp_article_comment_reply_list_api_v1_wechat_mp_web_fetch_mp_article_comment_reply_list_get_0(comment_id, content_id, url=url, offset=offset)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling WeChatMediaPlatformWebAPIApi->fetch_mp_article_comment_reply_list_api_v1_wechat_mp_web_fetch_mp_article_comment_reply_list_get_0: %s\n" % e)

Parameters

Name Type Description Notes
comment_id str 评论ID/Comment ID
content_id str 内容ID/Content ID
url str 文章链接/Article URL [optional] [default to 'https://mp.weixin.qq.com/s/Ko5V9jw9kwL8TO6Q7J3UqQ']
offset str 偏移量/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 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_mp_article_detail_html_api_v1_wechat_mp_web_fetch_mp_article_detail_html_get

ResponseModel fetch_mp_article_detail_html_api_v1_wechat_mp_web_fetch_mp_article_detail_html_get(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

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.WeChatMediaPlatformWebAPIApi(api_client)
    url = 'https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw' # str | 文章链接/Article URL

    try:
        # 获取微信公众号文章详情的HTML/Get Wechat MP Article Detail HTML
        api_response = api_instance.fetch_mp_article_detail_html_api_v1_wechat_mp_web_fetch_mp_article_detail_html_get(url)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling WeChatMediaPlatformWebAPIApi->fetch_mp_article_detail_html_api_v1_wechat_mp_web_fetch_mp_article_detail_html_get: %s\n" % e)

Parameters

Name Type Description Notes
url str 文章链接/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 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_mp_article_detail_html_api_v1_wechat_mp_web_fetch_mp_article_detail_html_get_0

ResponseModel fetch_mp_article_detail_html_api_v1_wechat_mp_web_fetch_mp_article_detail_html_get_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

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.WeChatMediaPlatformWebAPIApi(api_client)
    url = 'https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw' # str | 文章链接/Article URL

    try:
        # 获取微信公众号文章详情的HTML/Get Wechat MP Article Detail HTML
        api_response = api_instance.fetch_mp_article_detail_html_api_v1_wechat_mp_web_fetch_mp_article_detail_html_get_0(url)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling WeChatMediaPlatformWebAPIApi->fetch_mp_article_detail_html_api_v1_wechat_mp_web_fetch_mp_article_detail_html_get_0: %s\n" % e)

Parameters

Name Type Description Notes
url str 文章链接/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 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_mp_article_detail_json_api_v1_wechat_mp_web_fetch_mp_article_detail_json_get

ResponseModel fetch_mp_article_detail_json_api_v1_wechat_mp_web_fetch_mp_article_detail_json_get(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

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.WeChatMediaPlatformWebAPIApi(api_client)
    url = 'https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw' # str | 文章链接/Article URL

    try:
        # 获取微信公众号文章详情的JSON/Get Wechat MP Article Detail JSON
        api_response = api_instance.fetch_mp_article_detail_json_api_v1_wechat_mp_web_fetch_mp_article_detail_json_get(url)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling WeChatMediaPlatformWebAPIApi->fetch_mp_article_detail_json_api_v1_wechat_mp_web_fetch_mp_article_detail_json_get: %s\n" % e)

Parameters

Name Type Description Notes
url str 文章链接/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 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_mp_article_detail_json_api_v1_wechat_mp_web_fetch_mp_article_detail_json_get_0

ResponseModel fetch_mp_article_detail_json_api_v1_wechat_mp_web_fetch_mp_article_detail_json_get_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

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.WeChatMediaPlatformWebAPIApi(api_client)
    url = 'https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw' # str | 文章链接/Article URL

    try:
        # 获取微信公众号文章详情的JSON/Get Wechat MP Article Detail JSON
        api_response = api_instance.fetch_mp_article_detail_json_api_v1_wechat_mp_web_fetch_mp_article_detail_json_get_0(url)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling WeChatMediaPlatformWebAPIApi->fetch_mp_article_detail_json_api_v1_wechat_mp_web_fetch_mp_article_detail_json_get_0: %s\n" % e)

Parameters

Name Type Description Notes
url str 文章链接/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 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_mp_article_list_api_v1_wechat_mp_web_fetch_mp_article_list_get

ResponseModel fetch_mp_article_list_api_v1_wechat_mp_web_fetch_mp_article_list_get(ghid, offset=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

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.WeChatMediaPlatformWebAPIApi(api_client)
    ghid = 'gh_a3d35d4c9d3f' # str | 公众号ID/MP ID
offset = '' # str | 偏移量/Offset (optional) (default to '')

    try:
        # 获取微信公众号文章列表/Get Wechat MP Article List
        api_response = api_instance.fetch_mp_article_list_api_v1_wechat_mp_web_fetch_mp_article_list_get(ghid, offset=offset)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling WeChatMediaPlatformWebAPIApi->fetch_mp_article_list_api_v1_wechat_mp_web_fetch_mp_article_list_get: %s\n" % e)

Parameters

Name Type Description Notes
ghid str 公众号ID/MP ID
offset str 偏移量/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 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_mp_article_list_api_v1_wechat_mp_web_fetch_mp_article_list_get_0

ResponseModel fetch_mp_article_list_api_v1_wechat_mp_web_fetch_mp_article_list_get_0(ghid, offset=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

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.WeChatMediaPlatformWebAPIApi(api_client)
    ghid = 'gh_a3d35d4c9d3f' # str | 公众号ID/MP ID
offset = '' # str | 偏移量/Offset (optional) (default to '')

    try:
        # 获取微信公众号文章列表/Get Wechat MP Article List
        api_response = api_instance.fetch_mp_article_list_api_v1_wechat_mp_web_fetch_mp_article_list_get_0(ghid, offset=offset)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling WeChatMediaPlatformWebAPIApi->fetch_mp_article_list_api_v1_wechat_mp_web_fetch_mp_article_list_get_0: %s\n" % e)

Parameters

Name Type Description Notes
ghid str 公众号ID/MP ID
offset str 偏移量/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 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_mp_article_read_count_api_v1_wechat_mp_web_fetch_mp_article_read_count_get

ResponseModel fetch_mp_article_read_count_api_v1_wechat_mp_web_fetch_mp_article_read_count_get(url, comment_id)

获取微信公众号文章阅读量/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

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.WeChatMediaPlatformWebAPIApi(api_client)
    url = 'https://mp.weixin.qq.com/s/hrTDuwh0pWyJFYC93kKCrg' # str | 文章链接/Article URL
comment_id = 'comment_id_example' # str | 评论ID/Comment ID

    try:
        # 获取微信公众号文章阅读量/Get Wechat MP Article Read Count
        api_response = api_instance.fetch_mp_article_read_count_api_v1_wechat_mp_web_fetch_mp_article_read_count_get(url, comment_id)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling WeChatMediaPlatformWebAPIApi->fetch_mp_article_read_count_api_v1_wechat_mp_web_fetch_mp_article_read_count_get: %s\n" % e)

Parameters

Name Type Description Notes
url str 文章链接/Article URL
comment_id str 评论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 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_mp_article_read_count_api_v1_wechat_mp_web_fetch_mp_article_read_count_get_0

ResponseModel fetch_mp_article_read_count_api_v1_wechat_mp_web_fetch_mp_article_read_count_get_0(url, comment_id)

获取微信公众号文章阅读量/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

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.WeChatMediaPlatformWebAPIApi(api_client)
    url = 'https://mp.weixin.qq.com/s/hrTDuwh0pWyJFYC93kKCrg' # str | 文章链接/Article URL
comment_id = 'comment_id_example' # str | 评论ID/Comment ID

    try:
        # 获取微信公众号文章阅读量/Get Wechat MP Article Read Count
        api_response = api_instance.fetch_mp_article_read_count_api_v1_wechat_mp_web_fetch_mp_article_read_count_get_0(url, comment_id)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling WeChatMediaPlatformWebAPIApi->fetch_mp_article_read_count_api_v1_wechat_mp_web_fetch_mp_article_read_count_get_0: %s\n" % e)

Parameters

Name Type Description Notes
url str 文章链接/Article URL
comment_id str 评论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 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_mp_article_url_api_v1_wechat_mp_web_fetch_mp_article_url_get

ResponseModel fetch_mp_article_url_api_v1_wechat_mp_web_fetch_mp_article_url_get(sogou_url)

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

[中文] ### 用途: - 获取微信公众号文章永久链接 ### 参数: - sogou_url: 搜狗链接 ### 返回: - 永久链接 # [English] ### Purpose: - Get Wechat MP Article URL ### Parameters: - sogou_url: Sogou URL ### Returns: - Article URL # [示例/Example] sogou_url = "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\"

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.WeChatMediaPlatformWebAPIApi(api_client)
    sogou_url = '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' # str | 搜狗链接/Sogou URL

    try:
        # 获取微信公众号文章永久链接/Get Wechat MP Article URL
        api_response = api_instance.fetch_mp_article_url_api_v1_wechat_mp_web_fetch_mp_article_url_get(sogou_url)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling WeChatMediaPlatformWebAPIApi->fetch_mp_article_url_api_v1_wechat_mp_web_fetch_mp_article_url_get: %s\n" % e)

Parameters

Name Type Description Notes
sogou_url str 搜狗链接/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 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_mp_article_url_api_v1_wechat_mp_web_fetch_mp_article_url_get_0

ResponseModel fetch_mp_article_url_api_v1_wechat_mp_web_fetch_mp_article_url_get_0(sogou_url)

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

[中文] ### 用途: - 获取微信公众号文章永久链接 ### 参数: - sogou_url: 搜狗链接 ### 返回: - 永久链接 # [English] ### Purpose: - Get Wechat MP Article URL ### Parameters: - sogou_url: Sogou URL ### Returns: - Article URL # [示例/Example] sogou_url = "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\"

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.WeChatMediaPlatformWebAPIApi(api_client)
    sogou_url = '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' # str | 搜狗链接/Sogou URL

    try:
        # 获取微信公众号文章永久链接/Get Wechat MP Article URL
        api_response = api_instance.fetch_mp_article_url_api_v1_wechat_mp_web_fetch_mp_article_url_get_0(sogou_url)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling WeChatMediaPlatformWebAPIApi->fetch_mp_article_url_api_v1_wechat_mp_web_fetch_mp_article_url_get_0: %s\n" % e)

Parameters

Name Type Description Notes
sogou_url str 搜狗链接/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 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_mp_article_url_conversion_api_v1_wechat_mp_web_fetch_mp_article_url_conversion_get

ResponseModel fetch_mp_article_url_conversion_api_v1_wechat_mp_web_fetch_mp_article_url_conversion_get(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

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.WeChatMediaPlatformWebAPIApi(api_client)
    url = 'http://mp.weixin.qq.com/s?__biz=MzIyMDQzMTM4Mg==&mid=2247504868&idx=1&sn=37ee48875df1be54cb766783177ce61d' # str | 文章链接/Article URL

    try:
        # 获取微信公众号长链接转短链接/Get Wechat MP Long URL to Short URL
        api_response = api_instance.fetch_mp_article_url_conversion_api_v1_wechat_mp_web_fetch_mp_article_url_conversion_get(url)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling WeChatMediaPlatformWebAPIApi->fetch_mp_article_url_conversion_api_v1_wechat_mp_web_fetch_mp_article_url_conversion_get: %s\n" % e)

Parameters

Name Type Description Notes
url str 文章链接/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 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_mp_article_url_conversion_api_v1_wechat_mp_web_fetch_mp_article_url_conversion_get_0

ResponseModel fetch_mp_article_url_conversion_api_v1_wechat_mp_web_fetch_mp_article_url_conversion_get_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

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.WeChatMediaPlatformWebAPIApi(api_client)
    url = 'http://mp.weixin.qq.com/s?__biz=MzIyMDQzMTM4Mg==&mid=2247504868&idx=1&sn=37ee48875df1be54cb766783177ce61d' # str | 文章链接/Article URL

    try:
        # 获取微信公众号长链接转短链接/Get Wechat MP Long URL to Short URL
        api_response = api_instance.fetch_mp_article_url_conversion_api_v1_wechat_mp_web_fetch_mp_article_url_conversion_get_0(url)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling WeChatMediaPlatformWebAPIApi->fetch_mp_article_url_conversion_api_v1_wechat_mp_web_fetch_mp_article_url_conversion_get_0: %s\n" % e)

Parameters

Name Type Description Notes
url str 文章链接/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 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_mp_related_articles_api_v1_wechat_mp_web_fetch_mp_related_articles_get

ResponseModel fetch_mp_related_articles_api_v1_wechat_mp_web_fetch_mp_related_articles_get(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

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.WeChatMediaPlatformWebAPIApi(api_client)
    url = 'https://mp.weixin.qq.com/s/Ko5V9jw9kwL8TO6Q7J3UqQ' # str | 文章链接/Article URL

    try:
        # 获取微信公众号关联文章/Get Wechat MP Related Articles
        api_response = api_instance.fetch_mp_related_articles_api_v1_wechat_mp_web_fetch_mp_related_articles_get(url)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling WeChatMediaPlatformWebAPIApi->fetch_mp_related_articles_api_v1_wechat_mp_web_fetch_mp_related_articles_get: %s\n" % e)

Parameters

Name Type Description Notes
url str 文章链接/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 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_mp_related_articles_api_v1_wechat_mp_web_fetch_mp_related_articles_get_0

ResponseModel fetch_mp_related_articles_api_v1_wechat_mp_web_fetch_mp_related_articles_get_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

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.WeChatMediaPlatformWebAPIApi(api_client)
    url = 'https://mp.weixin.qq.com/s/Ko5V9jw9kwL8TO6Q7J3UqQ' # str | 文章链接/Article URL

    try:
        # 获取微信公众号关联文章/Get Wechat MP Related Articles
        api_response = api_instance.fetch_mp_related_articles_api_v1_wechat_mp_web_fetch_mp_related_articles_get_0(url)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling WeChatMediaPlatformWebAPIApi->fetch_mp_related_articles_api_v1_wechat_mp_web_fetch_mp_related_articles_get_0: %s\n" % e)

Parameters

Name Type Description Notes
url str 文章链接/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 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]