当前位置:网站首页>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
边栏推荐
- Event registration Apache pulsar x kubesphere online meetup hot registration
- Navicat prevent new query from being deleted by mistake
- Is it possible to use Jasmine's toHaveBeenCalledWith matcher with a regular expression?
- 深入解析 Apache BookKeeper 系列:第三篇——读取原理
- Common cluster scripts
- Editing the date formatting of x-axis tick labels in Matplotlib - editing the date formatting of x-axis tick labels in Matplotlib
- [Shangshui Shuo series] day 5
- Kubernetes 集群中流量暴露的几种方案
- Which securities company do you want to buy stocks to open an account faster and safer
- 【一起上水硕系列】Day 5
猜你喜欢

Flask 的入门级使用

父爱的表达方式

Power representation in go language

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

【一起上水硕系列】Day 5

Following the last minor upgrade of nodemcu (esp8266)

Streamnational platform version 1.5 is released, integrating istio and supporting openshift deployment

Design of PWM breathing lamp based on FPGA

基于 KubeSphere 的分级管理实践

48 pictures | teach you the performance monitoring, pressure testing and tuning of microservices by hand
随机推荐
Design of PWM breathing lamp based on FPGA
哇哦,好丰富呀。
What is the real future of hardware engineers?
Wow, it's so rich.
从感知机到Transformer,一文概述深度学习简史
alphassl通配符证书送一个月
Tp6 interface returns three elements
Qcom--lk phase I2C interface configuration scheme -i2c6
Simple and complete steps of vivado project
使用OpenGL绘制shp文件
Why use NoSQL with MySQL?
How to find happiness in programming and get lasting motivation?
Blue Bridge Cup SCM module code (LED) (code + comments)
Change the current count of auto increment values in MySQL- Changing the current count of an Auto Increment value in MySQL?
Fastadmin cascade clear data
CTFHub-Web-信息泄露-目錄遍曆
Flexbox on ie11: stretching images for no reason- Flexbox on IE11: image stretched for no reason?
Uncaught TypeError: Cannot read properties of undefined (reading ‘prototype‘)
【C语言】给字符串增加分隔符
[2022 dark horse programmer] SQL optimization