Skip to main content

Minimalist Klout API interface.

Project description

Klout API

https://secure.travis-ci.org/erfaan/klout.png?branch=master

A minimalist klout API interface. Use of this API requires klout developer key. You can get registered and get a key at

<http://klout.com/s/developers/v2>

Complete documentation is available at:

<https://klout.readthedocs.org/en/latest/>

Design Philosoph

See Design Philosophy

Quickstart

Install the PyPi package:

pip install Klout

This short example shows how to get a kloutId first and fetch user’s score using that kloutId:

from klout import *

# Make the Klout object
k = Klout('YOUR_KEY_HERE')

# Get kloutId of the user by inputting a twitter screenName
kloutId = k.identity.klout(screenName="erfaan").get('id')

# Get klout score of the user
score = k.user.score(kloutId=kloutId).get('score')

print "User's klout score is: %s" % (score)

# By default all communication is not secure (HTTP). An optional secure parameter
# can be sepcified for secure (HTTPS) communication
k = Klout('YOUR_KEY_HERE', secure=True)

# Optionally a timeout parameter (seconds) can also be sent with all calls
score = k.user.score(kloutId=kloutId, timeout=5).get('score')

License

MIT License. See LICENSE.txt Copyright (c) 2012 Irfan Ahmad

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Klout-0.1.3.zip (12.7 kB view details)

Uploaded Source

File details

Details for the file Klout-0.1.3.zip.

File metadata

  • Download URL: Klout-0.1.3.zip
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Klout-0.1.3.zip
Algorithm Hash digest
SHA256 6984f39327f2e154eaadc7b9f4588c6dcdf7431fb01b30ebe9360a1c424166ba
MD5 0e621dd8d1b275557e2786caee532db0
BLAKE2b-256 5b8c49ede14d146cde4bc84699ee2fdb72eba10fde626c2c370a2a8007e584ae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page