Skip to content

Commit 1ee2be1

Browse files
feat: Look up sale by code added (#6)
1 parent 067a136 commit 1ee2be1

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/Managers/SalesManager.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,22 @@ public function authorSales($page = 1)
2020
return $this->envatoClient()->performGet('/v3/market/author/sales', $params);
2121
}
2222

23+
/**
24+
* @param string $code
25+
*
26+
* @throws \GuzzleHttp\Exception\GuzzleException
27+
*
28+
* @return \InfyOmLabs\LaravelEnvato\Client\EnvatoResponse
29+
*/
30+
public function authorSaleByCode($code)
31+
{
32+
$params = [
33+
'code' => $code,
34+
];
35+
36+
return $this->envatoClient()->performGet('/v3/market/author/sale', $params);
37+
}
38+
2339
/**
2440
* @param array $params
2541
*

0 commit comments

Comments
 (0)