pk3_api_banner

Welcome to the PeopleKeys Developer Portal

The PeopleKeys 3 API can be used to integrate trusted online personality profiling features into your application. This page is dedicated to developers who want to get started using the PeopleKeys 3 API. Take a look at our API Documentation or view some Examples.

Getting Started

The PeopleKeys 3 API is a RESTful API that can unlock all of the cool features of PeopleKeys for your application or integration. Regardless of the programming language you may be using, this documentation should help you learn the API.

REST is a simple way to organize interactions between independent systems. It’s been growing in popularity since 2005, and inspires the design of services, such as the Twitter API. This is due to the fact that REST allows you to interact with minimal overhead with clients as diverse as mobile phones and other websites. In theory, REST is not tied to the web, but it’s almost always implemented as such, and was inspired by HTTP. As a result, REST can be used wherever HTTP can.

A Beginner’s Guide to HTTP and REST

Example: Displaying information about your Account

[php]<br />&lt;?php<br /><%%KEEPWHITESPACE%%>    require 'curl.class.php';<br /><%%KEEPWHITESPACE%%>    $curl = new Curl();<br /><br /><%%KEEPWHITESPACE%%>    $server = 'http://app3.peoplekeys.com/app/api/';<br /><%%KEEPWHITESPACE%%>    $public_key = 'YOUR_PUBLIC_KEY';<br /><%%KEEPWHITESPACE%%>    $private_key = 'YOUR_PRIVATE_KEY';<br /><br /><%%KEEPWHITESPACE%%>    $curl-&gt;setHeader('X-Public', $public_key);<br /><%%KEEPWHITESPACE%%>    $curl-&gt;get($server . 'account');<br /><br /><%%KEEPWHITESPACE%%>    print_r($curl-&gt;response);<br />?&gt;<br />[/php]

Response

{
    "groupname":"PeopleKeys",
    "description":"The official PeopleKeys 3 account.",
    "stub":"peoplekeys",
    "type":"private",
    "userId":"OWNER_ID",
    "date":"2013-12-10 00:06:35",
    "changeDate":"2013-12-10 00:09:31",
    "id":"ACCOUNT_ID",
    "parent":null
}