com.directmediatips:dmt-klout

Simple classes to use the Klout API.

License

License

GroupId

GroupId

com.directmediatips
ArtifactId

ArtifactId

dmt-klout
Last Version

Last Version

0.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

com.directmediatips:dmt-klout
Simple classes to use the Klout API.
Project URL

Project URL

http://directmediatips.com
Project Organization

Project Organization

Wil-Low BVBA
Source Code Management

Source Code Management

https://github.com/directmediatips/dmt-klout

Download dmt-klout

How to add to project

<!-- https://jarcasting.com/artifacts/com.directmediatips/dmt-klout/ -->
<dependency>
    <groupId>com.directmediatips</groupId>
    <artifactId>dmt-klout</artifactId>
    <version>0.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.directmediatips/dmt-klout/
implementation 'com.directmediatips:dmt-klout:0.1.1'
// https://jarcasting.com/artifacts/com.directmediatips/dmt-klout/
implementation ("com.directmediatips:dmt-klout:0.1.1")
'com.directmediatips:dmt-klout:jar:0.1.1'
<dependency org="com.directmediatips" name="dmt-klout" rev="0.1.1">
  <artifact name="dmt-klout" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.directmediatips', module='dmt-klout', version='0.1.1')
)
libraryDependencies += "com.directmediatips" % "dmt-klout" % "0.1.1"
[com.directmediatips/dmt-klout "0.1.1"]

Dependencies

compile (1)

Group / Artifact Type Version
org.json : json jar 20160810

Project Modules

There are no modules declared in this project.

dmt-klout

Simple library to connect to the Klout API as explained in the Setting up a Klout application section of the Direct Media Tips and Tricks book.

This library is also available on the Maven Central Repository:

<dependency>
  <groupId>com.directmediatips</groupId>
  <artifactId>dmt-klout</artifactId>
  <version>0.1.1</version>
</dependency>

To use this library, create a Klout object with an API key that gives you access to the Klout API.

Klout klout = new Klout(apiKey);

There are different methods to create a UserId. For instance: if you know someone's screen name on Twitter, you can get this person's Klout ID like this:

UserId id = klout.getUserIdFromTwitterScreenName(screenName);

Once you have a UserId instance, you can get:

  • User information (e.g. the Klout score),
  • Influence information (influencers and influencees), and
  • Topic information.

The following lines show how to write this information to the System.out:

System.out.println(klout.getUser(id));
System.out.println(klout.getInfluence(id));
System.out.println(klout.getTopics(id));

See also KloutConnect.java for a simple standalone example.

com.directmediatips

Direct Media Tips and Tricks

Versions

Version
0.1.1