leaderbin/modules/api.php
2013-12-17 17:53:02 -05:00

19 lines
261 B
PHP

<?php
class api extends CustomModule
{
public function __default()
{
// Grabs the user's API key
$api_key = false;
if ($this->uid)
{
$api_key = $this->redis->hget('user:' . $this->uid, 'api');
}
return array('api_key' => $api_key);
}
}
?>