Livefyre Python utility classes
Project description
Livefyre Python Utility Classes
Works with Python versions: 2.6, 2.7, 3.2, 3.3
Installation
pip install livefyre
Usage
Creating tokens:
User auth token:
network = Network(network_name, network_key) network.build_user_auth_token(user_id, display_name, expires)
Collection meta token:
network = Network(network_name, network_key) site = network.Site(site_id, site_key) site.build_collection_token(title, article_id, url, tags)
To validate a Livefyre token:
network = Network(network_name, network_key) network.validate_livefyre_token(token)
To send Livefyre a user sync url and then have Livefyre pull user data from that url:
network = Network(network_name, network_key)
network.set_user_sync_url(’http://thisisa.test.url/{id}/’’) network.sync_user(system)
To retrieve content collection data as a tuple:
network = Network(network_name, network_key) site = network.get_site(site_id, site_secret) site.get_collection_content(article_id)
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for livefyre-1.0.0.macosx-10.9-x86_64.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9e5d5a3fe4d9b235bd7a18d7cc9596d4ad1cccff760d174efce7b33682c19cd |
|
MD5 | 8d91288070f535b6db329f612a26cd38 |
|
BLAKE2b-256 | 596ff93a47d1c8b96a2d5c4f5c918162ef49baa2319c51ae190b4e5c7566fd4c |