Community Leaders

Community Leaders are the top Influence and Outreach leaders in a selected community. Influence leaders have the highest Kred Influence in a selected community while Outreach leaders have the highest Kred Outreach level in that community.

Endpoint: http://api.kred.com/CommunityLeaders

Request - Required Parameters

  1. app_id (STRING) - Eight Digit ID [ex: 84d8620b]
  2. app_key (STRING) - Thirty-two digit key [ex: 281014ad8b0fba5adcc88fac7d79999c]
  3. Post app registration, your app id and key can be viewed by going to https://developer.peoplebrowsr.com/admin/applications and clicking "view

  4. source (STRING) (values: Twitter)
  5. term (STRING) - The Term in this case is the community you wish to call to return the top 20 most influential + outreach leaders. The list of communities is continually updated and can be accessed by calling to this method with your app_id & app_key:
    http://api.peoplebrowsr.com/community-list?term=None&source=twitter&app_id=2476ec6a&app_key=8ede04eb39412a3a4e346591bd112e27

Request - Sample URL

http://api.kred.com/CommunityLeaders?&source=twitter&term=ceo&app_id=2476ec6a&app_key=8ede04eb39412a3a4e346591bd112e27

Response

Histogram; relational to date range defined. Returns in JSON format.

Response - Fields

  1. field (STRING) - Field description.
  2. field (STRING) - Field description.

Sample Response

{ "data": [ { "influence": { "aldsaur": 768, "anneperei": 744, "antoniopiresp": 975, "barackobama": 998, "dennysantoso": 973, "dimarcusjackson": 770, "etcali": 925, "fayandrian": 698, "fuelonline": 993, "guykawasaki": 984, "lord_sugar": 991, "marklanerocks": 873, "nabeelrajab": 987, "necolebitchie": 974, "pedroj_ramirez": 978, "prstgewrldwide": 744, "r": 980, "sheillaaah_s": 798, "temnasea2011": 755, "youngshap": 701 }, "outreach": { "antoniopiresp": 12, "b00sh3babii": 10, "bukkeahsans": 10, "datrillot": 10, "dawderek": 10, "dv1ne": 10, "governortwos": 11, "hicksonhotness": 10, "isparkle2boo": 11, "lil_miss_kush": 10, "lisaawho": 10, "miangel_millan": 11, "mistaye": 11, "mrbadass4": 11, "mstaeken": 10, "ounceaday": 11, "rootnl2k": 12, "scribble1978": 11, "that_girl_me": 11, "wrenmeyers": 10 } } ], "id": "999-04fd3d732d41695c3624315caa08e2d6", "request": { "app_id": "2476ec6a", "app_key": "8ede04eb39412a3a4e346591bd112e27", "external": true, "name": "communityleaders", "number": 30, "source": "twitter", "term": "ceo" }, "status": "complete" }

PHP Code Sample