wordpress rest api的简单包装
python_wpapi的Python项目详细描述
#python wordpress api
[![pypi][pypi image]][pypi url]
[![updates][pyup image]][pyup url]
wordpress rest api的简单python包装。支持使用基本身份验证进行身份验证。
以下资源的所有终结点都可用:
*posts
*media
*post type
*taxonomics
*categories
*tags
*users
*post status
*post revisions
*pages
*post type
*post status
*评论
>尽可能使用[官方api文件](http://v2.wp-api.org/reference)作为参考。
35;无认证。仅公共终结点
api2=wpapi('http://example.com',user='user',password='pwd')基本身份验证
posts=api1.get\posts()
new\post=api2.create\post(title='foo',
``````
``>
` ` ` ` ` ` ` ` `
` ` ` ` ` ` `
` ` ` ` ` ` ` `
` ` ` ` ` ` ` ` ` `
` ` `
` ` `
` ` ` ` ` `
` ` ` ` ` ` `
` ` ` ` ` ` ` ` ` ` `
` ` ` ` ` ` ` ` ` `:https://pypi.python.org/pypi/python_wpapi
[pyup image]:http://pyup.io/repos/repos/github/lobosque/python-wpapi/shield.svg
[pyup-url]:https://pyup.io/repos/github/lobosque/python-wpapi/
<0.3.1(2017-08-07)0.3.1(2017-08-07)
*修复了get将内容发送到请求正文中的错误。
/>0.2.1.1.1.1.1.1.1.1.1.1.1.1.1.1(2016-11-16)
*将RST转换为降价。
0.2.0(2016-11-16)
*添加了测试套件。
*修复了引发API异常的错误。
\0.1.0(2016-11-16)
*PYPI上的首次发布。
[![pypi][pypi image]][pypi url]
[![updates][pyup image]][pyup url]
wordpress rest api的简单python包装。支持使用基本身份验证进行身份验证。
以下资源的所有终结点都可用:
*posts
*media
*post type
*taxonomics
*categories
*tags
*users
*post status
*post revisions
*pages
*post type
*post status
*评论
>尽可能使用[官方api文件](http://v2.wp-api.org/reference)作为参考。
35;无认证。仅公共终结点
api2=wpapi('http://example.com',user='user',password='pwd')基本身份验证
posts=api1.get\posts()
new\post=api2.create\post(title='foo',
``````
``>
` ` ` ` ` ` ` ` `
` ` ` ` ` ` `
` ` ` ` ` ` ` `
` ` ` ` ` ` ` ` ` `
` ` `
` ` `
` ` ` ` ` `
` ` ` ` ` ` `
` ` ` ` ` ` ` ` ` ` `
` ` ` ` ` ` ` ` ` `:https://pypi.python.org/pypi/python_wpapi
[pyup image]:http://pyup.io/repos/repos/github/lobosque/python-wpapi/shield.svg
[pyup-url]:https://pyup.io/repos/github/lobosque/python-wpapi/
<0.3.1(2017-08-07)0.3.1(2017-08-07)
*修复了get将内容发送到请求正文中的错误。
/>0.2.1.1.1.1.1.1.1.1.1.1.1.1.1.1(2016-11-16)
*将RST转换为降价。
0.2.0(2016-11-16)
*添加了测试套件。
*修复了引发API异常的错误。
\0.1.0(2016-11-16)
*PYPI上的首次发布。