当前位置:网站首页>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
边栏推荐
猜你喜欢

我们不一样
![Analysis on the scale of China's smart airport industry in 2020: there is still a large space for competition in the market [figure]](/img/cd/c8be09eca7b41407b0ca1f3b4f3fe8.jpg)
Analysis on the scale of China's smart airport industry in 2020: there is still a large space for competition in the market [figure]

Modify the default log level
![[learn shell programming easily]-5. Plan tasks](/img/6f/8067d4201f0c2e7a692d89885e3ad9.png)
[learn shell programming easily]-5. Plan tasks

ES 终于可以搜到”悟空哥“了!

单片机IO详解(上拉 下拉 准双向 输入 输出 推挽 开漏)

Finally, when you open source the applet ~

Are you still doing the dishes yourself? Teach you how to make dishwasher controller with single chip microcomputer

Baidu map - introductory tutorial

48 pictures | teach you the performance monitoring, pressure testing and tuning of microservices by hand
随机推荐
Modify the default log level
Bcrypt password encryption kalrry
Keil debug view variable prompt not in scope
活动报名|Apache Pulsar x KubeSphere 在线 Meetup 火热来袭
48 张图 | 手摸手教你微服务的性能监控、压测和调优
Controlling volume mixer
Changing the background color of tab bar - changing the background color of tab bar
Event registration | Apache pulsar x kubesphere online meetup is coming
Kubernetes 集群中流量暴露的几种方案
【xxl-job】池塘水绿风微暖,记得玉真初见面
Coffee script unmatched outent error
48 pictures | teach you the performance monitoring, pressure testing and tuning of microservices by hand
Entry level use of flask
Flexbox on ie11: stretching images for no reason- Flexbox on IE11: image stretched for no reason?
Kubernetes core components etcd details
Non-contact infrared temperature measurement system for human body based on single chip microcomputer
Americo technology launches professional desktop video editing solution
爱情️终结者
燕京啤酒何以至此?
【C语言】给字符串增加分隔符