python zeef api处理程序
pyzeef的Python项目详细描述
Pyzeef
==
[![代码运行状况](https://landscape.io/github/ellisonleao/pyzeef/master/landscape.svg?style=flat)(https://landscape.io/github/ellisonleao/pyzeef/master)
[![构建状态](https://travis-ci.org/ellisonleao/pyzeef.svg?(https://travis ci.org/ellisonleao/pyzeef/pyzeef)
>欢迎使用python zeef api库。
-[安装](安装)
-[基本用法](基本用法)
-[zeef类](;zeef类)
-[页类](;页类)
>-[zeef类](;zeef类)
-[块类](訛块类](訛块类](訛[块类](訛块类](訛块类];块类)
-[链接[链接类](链接类)
`` ` `
` `
` ` ` ` ` ` ` `
` ` ` ` ` `
` ` ` ` ` ` ` ` ` ` `
` ` ` ` ` ` ` ` ` `
` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` `强烈建议在安装任何上面的方法。
请[到这里](https://zeef.com/dashboard/user/profile/profile/tokens)
``python
z=zeef('your-token')
>打印z.pages
<
<;page-id>;
`
//
persist_pages=true,get_scratchpad=true)`
当实例化一个新的zeef类时,所有页面和scratchpad也将在默认情况下被持久化。如果您不想获取页面和/或草稿行,则可以在创建新类时传递“persist_pages”和“get_scratchpad”kwargs
它将通过所有api请求授权并持久化您的令牌,还将获取/持久化您的zeef页面。在实例化类时,还可以传递一个新的
标记该令牌将被持久化,以便在以后的请求中使用。
username=string)`
如果找到任何具有提供的“block\u id”的块。
35 35 35 35 35 35 35 35 35 get\u link(link\u id)`
根据名称、语言创建新页面以及类型。这将返回一个包含新页面信息的页面实例。
有一个helper类可以帮助您进行zeef页面crud操作。
这两个字段都是可选的。
检索页面时Block s属性将返回一个[Block](\Block)对象列表,以帮助Block API操作。
-`title`-页面的标题。
update(data)update(data)`
用给定的数据dict更新当前块。``用给定的数据dict更新当前数据dict更新当前块。`数据键可以是:
-`title`-字符串
-`promoted`-boolean
-`public\u visible`-boolean
对于“link”类型的块,我们可以添加:
-`description`-字符串
-`feed-url`-url`-url字符串
-`max-link s`-max-links`-integer
-`refresh-minutes`-integer
-`link`-list-links`-list-links`-max-integer
>
-`refresh-minutes`-integer
用于帮助链接API操作的[链接](链接)对象的 title
- `type` - Block's type
### [The Link Class](#link-class)
### Methods
### `update(link='http://mylink.com', description='text', title='title')`
Updates the current link with the provided kwargs.
### `delete()`
Deletes the link
### Main Properties
- `title` - Link's 标题
-`url`-链接的url
==
[![代码运行状况](https://landscape.io/github/ellisonleao/pyzeef/master/landscape.svg?style=flat)(https://landscape.io/github/ellisonleao/pyzeef/master)
[![构建状态](https://travis-ci.org/ellisonleao/pyzeef.svg?(https://travis ci.org/ellisonleao/pyzeef/pyzeef)
>欢迎使用python zeef api库。
-[安装](安装)
-[基本用法](基本用法)
-[zeef类](;zeef类)
-[页类](;页类)
>-[zeef类](;zeef类)
-[块类](訛块类](訛块类](訛[块类](訛块类](訛块类];块类)
-[链接[链接类](链接类)
`` ` `
` `
` ` ` ` ` ` ` `
` ` ` ` ` `
` ` ` ` ` ` ` ` ` ` `
` ` ` ` ` ` ` ` ` `
` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` `强烈建议在安装任何上面的方法。
请[到这里](https://zeef.com/dashboard/user/profile/profile/tokens)
``python
z=zeef('your-token')
>打印z.pages
<
<;page-id>;
`
//
persist_pages=true,get_scratchpad=true)`
当实例化一个新的zeef类时,所有页面和scratchpad也将在默认情况下被持久化。如果您不想获取页面和/或草稿行,则可以在创建新类时传递“persist_pages”和“get_scratchpad”kwargs
它将通过所有api请求授权并持久化您的令牌,还将获取/持久化您的zeef页面。在实例化类时,还可以传递一个新的
标记该令牌将被持久化,以便在以后的请求中使用。
username=string)`
如果找到任何具有提供的“block\u id”的块。
35 35 35 35 35 35 35 35 35 get\u link(link\u id)`
根据名称、语言创建新页面以及类型。这将返回一个包含新页面信息的页面实例。
有一个helper类可以帮助您进行zeef页面crud操作。
这两个字段都是可选的。
检索页面时Block s属性将返回一个[Block](\Block)对象列表,以帮助Block API操作。
-`title`-页面的标题。
update(data)update(data)`
用给定的数据dict更新当前块。``用给定的数据dict更新当前数据dict更新当前块。`数据键可以是:
-`title`-字符串
-`promoted`-boolean
-`public\u visible`-boolean
对于“link”类型的块,我们可以添加:
-`description`-字符串
-`feed-url`-url`-url字符串
-`max-link s`-max-links`-integer
-`refresh-minutes`-integer
-`link`-list-links`-list-links`-max-integer
>
-`refresh-minutes`-integer
用于帮助链接API操作的[链接](链接)对象的 title
- `type` - Block's type
### [The Link Class](#link-class)
### Methods
### `update(link='http://mylink.com', description='text', title='title')`
Updates the current link with the provided kwargs.
### `delete()`
Deletes the link
### Main Properties
- `title` - Link's 标题
-`url`-链接的url