Skip to content

Commit

Permalink
add new function to get a user from OWL using a user_token
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Anderson committed Nov 17, 2014
1 parent 9bb1ba2 commit 27e3c96
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/Credibility/DandB/DandB.php
Expand Up @@ -180,6 +180,21 @@ public function userToken($email, $password)
));
}

/**
* Returns User based on User Token
*
* @param $userToken
* @param null $accessToken
* @return \Credibility\DandB\Response
* @throws RequestException|LogicException|ParseException
*/
public function userUsingToken($userToken, $accessToken = null)
{
return $this->requester->runGet('/v1/user/token/status', array(
'user_token' => $userToken
), $accessToken);
}

/**
* Returns User Entitlements based on User Token
*
Expand Down

0 comments on commit 27e3c96

Please sign in to comment.