3rd Party App Integration - Example
This simple webpage shows you how to integrate with our 3rd party api_key login:
The javascript library requires JQuery.
<html> <head> <script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> <script src="https://infinite.ikanow.com/api/static/ikanow_js_libs/ikanow_api_auth.js"></script> </head> <body> <script type="text/javascript"> $(document).ready(init); var API_ENDPOINT; function init() { API_ENDPOINT = "https://infinite.ikanow.com/api/"; setIKANOWApiUrl(API_ENDPOINT); getIKANOWApiKey(test_callback); } function test_callback(result) { document.write("<p>key is: " + result + "<\p>"); //now that we have a key, make some api call $.get(API_ENDPOINT+"social/person/get?infinite_api_key=" + result,function(data) { document.write("<p>"+JSON.stringify(data.data)+"</p>"); } ); } </script> <h1>Example 3rd party app page for testing, make sure to allow popups.</h1> <p>This example app will try to find an existing API key, if it does not find one, it will load a popup to allow a temporary api key to be generated for future API calls. An example API call is then made w/ the temp api key</p> </body> </html>