Thursday, 02 April 2015
  5 Replies
  3.9K Visits
0
Votes
Undo
Hi there,

So I am trying to Create an API key for user from code. Was wondering if you had any advice.

currently I am logging the user on with

$credentials = array (
'username' => $username,
'password' => $password
);

$options = array();
$auth = & JAuthentication::getInstance();
$response = $auth->authenticate($credentials, $options);

not sure where in com_api the key creation takes place but was wondering if you off hand knew where I should start to look.