Setting up

From PokeTALK developers

Jump to: navigation, search

Overview

Getting up and running with the PokeTALK API takes no more than a few minutes.

  • Register your API to receive an API Key. We're putting together a registration for this, but for now you'll need to shoot us an email at developers@poketalk.com with the request for an API key. Please include a short description of the application you will be developing/integrating.
  • Download the PokeTALK Proxy and unzip it in your root directory. i.e /var/www/my_website.
  • Create a new HTML file, including both JQuery and the poketalk.base.js API in the header. You'll need to initialize the API by setting the path to your proxy file and your API key. Below is some sample code outlining this process.
    <html>
 
       <head>
          <title>PokeTALK API example</title>
          <script type="text/javascript" src="http://www.poketalk.biz/apijs/jquery-1.3.2.min.js"></script>
          <script type="text/javascript" src="http://www.poketalk.biz/apijs/poketalk.base.js"></script>
       </head>
 
      <script type="text/javascript">
         ptBase.init('http://www.example.com/pt_proxy_curl.php', 'YOUR_API_KEY');  
      </script>
 
      <body>
          PokeTALK API Example
      </body>
 
   </html>
  • That's all folks!