当前位置:网站首页>Operate cnblogs metaweblog API
Operate cnblogs metaweblog API
2022-06-25 07:13:00 【Python's path to becoming a God】
operation cnblogs metaweblog api
List of articles
cnblog It is a professional programmer blog , And it comes with metaweblog function .
Here is a brief record of , Maybe I can use it in the future
metaweblog What is it? ?
MetaWeblog API yes Blog International standard for external interface of application program .
adopt MetaWeblog API,blog Applications can be published blog Services provided , This allows external programs to get and set blog Text or attributes of the article . You can use this interface to upload blog posts .
Not much said , Try operating several interfaces
Where can I see my metaweblog Address
Blog setting , Other settings can be seen here 
Click to see the supported interfaces

Note that the interface is xmlrpc Format transmission mode
Try calling the interface
xmlrpc Interface transmission
This is the rule , The format is the following example .
POST /RPC2 HTTP/1.0
User-Agent: Frontier/5.1.2 (WinNT)
Host: betty.userland.com
Content-Type: text/xml
Content-length: 181
<?xml version="1.0"?>
<methodCall>
<methodName>examples.getStateName</methodName>
<params>
<param>
<value><i4>41</i4></value>
</param>
</params>
</methodCall>
Call the get user blog interface
url: It's the one above MetaWeblog Address
Enter the reference (xml form ):
<?xml version="1.0"?>
<methodCall>
<methodName>blogger.getUsersBlogs</methodName>
<params>
<param>
<value>
<string></string>
</value>
</param>
<param>
<value>
<string> Your login account </string>
</value>
</param>
<param>
<value>
<string> Your login account password </string>
</value>
</param>
</params>
</methodCall>
Return as follows :
<?xml version="1.0"?>
<methodResponse>
<params>
<param>
<value>
<array>
<data>
<value>
<struct>
<member>
<name>blogid</name>
<value>
<string>734037</string>
</value>
</member>
<member>
<name>url</name>
<value>
<string>https://www.cnblogs.com/hehaoxiang/</string>
</value>
</member>
<member>
<name>blogName</name>
<value>
<string> Hehaoxiang's blog </string>
</value>
</member>
</struct>
</value>
</data>
</array>
</value>
</param>
</params>
</methodResponse>
Get blog information
Here's the picture 
Other interfaces according to Support the address list to call
边栏推荐
- Error reported during vivado simulation common 17-39
- Practice of hierarchical management based on kubesphere
- Several schemes of traffic exposure in kubernetes cluster
- 【C语言】给字符串增加分隔符
- [2022 dark horse programmer] SQL optimization
- [he doesn't mention love, but every word is love]
- 深入解析 Apache BookKeeper 系列:第三篇——读取原理
- Kubernetes 集群中流量暴露的几种方案
- 聚类和分类的最基本区别。
- StreamNative Platform 1.5 版本发布,集成 Istio、支持 OpenShift 部署
猜你喜欢

Baidu map - introductory tutorial

Esp8266 & sg90 steering gear & Lighting Technology & Arduino

Flask 的入门级使用
![Analysis on the output, market scale and development status of China's children's furniture industry in 2020 and the competition pattern of children's furniture enterprises [figure]](/img/3a/e7a7ed1390664a6660112713266bdc.jpg)
Analysis on the output, market scale and development status of China's children's furniture industry in 2020 and the competition pattern of children's furniture enterprises [figure]

Modify the default log level

Finally, when you open source the applet ~

【xxl-job】池塘水绿风微暖,记得玉真初见面

Want to self-study SCM, do you have any books and boards worth recommending?

2022 biological fermentation Exhibition (Jinan), which is a must read before the exhibition. The most comprehensive exhibition strategy will take you around the "fermentation circle"

Qcom--lk phase I2C interface configuration scheme -i2c6
随机推荐
Leetcode 2163. Minimum difference of sum after element deletion
How to recover redis data from snapshot(rdb file) copied from another machine?
Blue Bridge Cup SCM module code (nixie tube) (code + comments)
2022 biological fermentation Exhibition (Jinan), which is a must read before the exhibition. The most comprehensive exhibition strategy will take you around the "fermentation circle"
[Shangshui Shuo series] day 4
Ctfhub web information disclosure directory traversal
Error reported during vivado simulation common 17-39
Americo technology launches professional desktop video editing solution
The most basic difference between clustering and classification.
Baidu map - introductory tutorial
从感知机到Transformer,一文概述深度学习简史
How do I know if mysqlnd is an active driver- How to know if MySQLnd is the active driver?
Capable people never complain about the environment!
Bcrypt password encryption kalrry
赚够钱回老家吗
How do I create a guid in excel- How to create a GUID in Excel?
Kubernetes cluster dashboard & kuboard installation demo
我们不一样
Torchserve pit avoidance Guide
爱情️终结者