Best of all it's completely free! You can even contact us for bespoke solutions such as your own replayer skin - We would be happy to hear from you.
3 Easy Steps
- Visit your My Account Area and click 'API Access'
- Click 'Generate API Key' and take a note of your API User ID & Secret API Key
- Use the Below PHP Example code to make a request to the API Server:
$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'http://api.weaktight.com/hand'); curl_setopt($ch, CURLOPT_HTTPHEADER, [ 'X-API-KEY: ' . $YOUR_API_KEY, 'X-USER-ID: ' . $YOUR_USER_ID ]); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POSTFIELDS, ['raw' => $YOUR_HAND_HISTORY, 'embed' => true]; $data = curl_exec($ch); curl_close($ch);
- API returns JSON formatted output. To embed a replayer, just use the returned embed_url in:
<iframe width="608" height="430" src="EMBED_URL" frameborder="0" allowfullscreen=""></iframe>
If you have any questions, just hit us up!
Here are some examples of the api being used by our partners.