Livefyre Python utility classes
Project description
Livefyre Python Utility Classes
Livefyre’s official library for common server-side tasks necessary for getting Livefyre apps (comments, reviews, etc.) working on your website.
Works with Python versions: 2.6, 2.7, 3.2, 3.3
Installation
pip install livefyre
Usage
Creating tokens:
User auth token:
network = Livefyre.get_network(network_name, network_key) network.build_user_auth_token(user_id, display_name, expires)
Collection meta token:
network = Livefyre.get_network(network_name, network_key)
site = network.get_site(site_id, site_key) site.build_collection_meta_token(title, article_id, url, tags)
To validate a Livefyre token:
network = Livefyre.get_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 = Livefyre.get_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 = Livefyre.get_network(network_name, network_key)
site = network.get_site(site_id, site_key) 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.2.macosx-10.9-intel.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44a86d6d488c90c826b079caaaa0164502af5027b1a4f066b48514b9f00bc29b |
|
MD5 | d7acd5b8b3d1434c4fb27187f5c065f1 |
|
BLAKE2b-256 | 04d5b37e1e6ce3624a06651cc1ff6f0cef3eb23d326bc7204315a7e195c211f7 |