Skip to content

Commit

Permalink
feat: email and account functions added
Browse files Browse the repository at this point in the history
  • Loading branch information
mitulgolakiya committed May 31, 2022
1 parent 1ee2be1 commit 956c02c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/Managers/UserManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,24 @@ public function getUsername()
{
return $this->envatoClient()->performGet('v1/market/private/user/username.json');
}

/**
* @throws \GuzzleHttp\Exception\GuzzleException
*
* @return \InfyOmLabs\LaravelEnvato\Client\EnvatoResponse
*/
public function getEmail()
{
return $this->envatoClient()->performGet('v1/market/private/user/email.json');
}

/**
* @throws \GuzzleHttp\Exception\GuzzleException
*
* @return \InfyOmLabs\LaravelEnvato\Client\EnvatoResponse
*/
public function accountDetails()
{
return $this->envatoClient()->performGet('v1/market/private/user/account.json');
}
}

0 comments on commit 956c02c

Please sign in to comment.