Python wrapper for Bibblio API.
Project description
# Bibblio API Python Python wrapper of Bibblio API
Register in [Bibblio](bibblio.org) and get your CLIENT_ID and CLIENT_SECRET
## Install `pip install bibblio`
## Configuration `python import bibblio `
set client_id and client_secret
`python bibblio.client_id = 'YOUR_CLIENT_ID' `
`python bibblio.client_secret = 'YOUR_CLIENT_SECRET' `
get access_token
`python bibblio.access_token = bibblio.Token.get_access_token() `
the access token has a duration of 5 minutes, remember to update it.
## Usage
For more information use [Bibblio API Documentation](http://docs.bibblio.apiary.io/) * payload is always a dict * limit and page are optional and integers * text is a string * content_item_id is a string
### Discovery
`python response = bibbliothon.Discovery.content_recommendations(content_item_id) `
`python response = bibbliothon.Discovery.recommendations(payload) `
### Enrichment
`python response = bibbliothon.Enrichment.create_content_item(payload) `
`python response = bibbliothon.Enrichment.get_content_items(limit=10, page=1) `
`python response = bibbliothon.Enrichment.get_content_item(content_item_id) `
`python response = bibbliothon.Enrichment.update_content_item(content_item_id, payload) `
`python response = bibbliothon.Enrichment.delete_content_item(content_item_id) `
`python response = bibbliothon.Enrichment.metadata(text) `
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for bibbliothon-1.0.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ff6d09468f7ad010eac71d015e9830e84263b5f0ff84a4ac58c0875533372e5 |
|
MD5 | 9e949b9946837ae7f0fcf13f2c017c7d |
|
BLAKE2b-256 | 40f6606231b9f5a6933721a83de38c93a250c819835856cd635ed99ea98fc317 |