-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
corrected soi examples syntax + added comments and stringifyed query …
…result outputs
- Loading branch information
Showing
1 changed file
with
16 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,29 @@ | ||
// example usage of klout-js - queries one existing and one missing klout profiles | ||
// call providing your Klout API key as argument | ||
// eg. node example.js 1234abc | ||
var klout = require('./klout-js.js')(process.argv[2]); | ||
|
||
klout.klout(['smurthasmith', 'jeremie'], function(err, data) { | ||
console.log('getKloutScore:', data); | ||
console.log('getKloutScore:', JSON.stringify(data)); | ||
console.log('.....................'); | ||
}); | ||
|
||
klout.show(['smurthasmith', 'jeremie'], function(err, data) { | ||
console.log('getKloutScore:', data); | ||
console.log('getKloutProfile:', JSON.stringify(data)); | ||
console.log('.....................'); | ||
}); | ||
|
||
klout.topics(['smurthasmith', 'jeremie'], function(err, data) { | ||
console.log('getKloutScore:', data); | ||
console.log('getKloutTopics:', JSON.stringify(data)); | ||
console.log('.....................'); | ||
}); | ||
|
||
//these endpoints don't seem to work, if anyone can get them to work, please help!! | ||
/* | ||
klout.influencedBy(['smurthasmith', 'jeremie'], function(data) { | ||
console.log('getKloutScore:', data); | ||
klout.influencedBy(['smurthasmith', 'jeremie'], function(err, data) { | ||
console.log('getKloutInfluencers:', JSON.stringify(data)); | ||
console.log('.....................'); | ||
}); | ||
|
||
klout.influencerOf(['smurthasmith', 'jeremie'], function(data) { | ||
console.log('getKloutScore:', data); | ||
});*/ | ||
klout.influencerOf(['smurthasmith', 'jeremie'], function(err, data) { | ||
console.log('getKloutInfluencees:', JSON.stringify(data)); | ||
console.log('.....................'); | ||
}); |