当前位置:网站首页>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
边栏推荐
- Icon already includes gloss effects
- StreamNative Platform 1.5 版本发布,集成 Istio、支持 OpenShift 部署
- [Yu Yue education] engineering testing technology reference of Wenhua University
- Modify the default log level
- Love Terminator
- 基于 KubeSphere 的分级管理实践
- 高效探索|ES地理位置查询的一次应用实践
- Atomic alpha development board -- SD card and EMMC burning tool
- 100 times larger than the Milky way, Dutch astronomers found mysterious objects in deep space
- Lotus windowsost manually triggers space-time proof calculation
猜你喜欢
MCU IO explanation (pull-up pull-down quasi bidirectional input / output push-pull open drain)
Analysis of China's food cold chain logistics, output of quick-frozen noodles and rice products and operation of major enterprises in 2021 [figure]
使用OpenGL绘制shp文件
レ / leilei
Who can teach me how to learn SCM, what to learn first and how to get started?
Flask 的入门级使用
CTFHub-Web-信息泄露-目录遍历
Simple and complete steps of vivado project
【xxl-job】池塘水绿风微暖,记得玉真初见面
【工具分享】一款颜值与技能并重的软件
随机推荐
[C language] add separator to string
Conditional grouping with $exists inside $cond
Simple and complete steps of vivado project
1W words | 40 pictures | hard core es actual combat
Lotus v1.16.0-rc2 Calibration net
Editing the date formatting of x-axis tick labels in Matplotlib - editing the date formatting of x-axis tick labels in Matplotlib
Torchserve pit avoidance Guide
活动报名|Apache Pulsar x KubeSphere 在线 Meetup 火热来袭
哇哦,好丰富呀。
[轻松学会shell编程]-5、计划任务
【一起上水硕系列】Day 5
Design of PWM breathing lamp based on FPGA
Streamnational platform version 1.5 is released, integrating istio and supporting openshift deployment
Expression of fatherly love
How do I know if mysqlnd is an active driver- How to know if MySQLnd is the active driver?
lotus v1.16.0-rc2 Calibration-net
想买股票去哪个证券公司开户更快更安全
How do I get red green blue (RGB) and alpha back from a UIColor object?
ES 终于可以搜到”悟空哥“了!
How to find happiness in programming and get lasting motivation?