Skip to content

Commit 956c02c

Browse files
committed
feat: email and account functions added
1 parent 1ee2be1 commit 956c02c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/Managers/UserManager.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,24 @@ public function getUsername()
1313
{
1414
return $this->envatoClient()->performGet('v1/market/private/user/username.json');
1515
}
16+
17+
/**
18+
* @throws \GuzzleHttp\Exception\GuzzleException
19+
*
20+
* @return \InfyOmLabs\LaravelEnvato\Client\EnvatoResponse
21+
*/
22+
public function getEmail()
23+
{
24+
return $this->envatoClient()->performGet('v1/market/private/user/email.json');
25+
}
26+
27+
/**
28+
* @throws \GuzzleHttp\Exception\GuzzleException
29+
*
30+
* @return \InfyOmLabs\LaravelEnvato\Client\EnvatoResponse
31+
*/
32+
public function accountDetails()
33+
{
34+
return $this->envatoClient()->performGet('v1/market/private/user/account.json');
35+
}
1636
}

0 commit comments

Comments
 (0)