skip to navigation
skip to content

Not Logged In

livefyre 1.0.1

Livefyre Python utility classes

Latest Version: 2.0.3

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

 
File Type Py Version Uploaded on Size
livefyre-1.0.1.macosx-10.9-x86_64.exe (md5, pgp) MS Windows installer any 2014-03-20 68KB
livefyre-1.0.1.tar.gz (md5, pgp) Source 2014-03-20 3KB
  • Downloads (All Versions):
  • 90 downloads in the last day
  • 533 downloads in the last week
  • 2213 downloads in the last month