Skip to content

Commit

Permalink
feat: Look up sale by code added (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
mitulgolakiya authored Mar 22, 2022
1 parent 067a136 commit 1ee2be1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/Managers/SalesManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,22 @@ public function authorSales($page = 1)
return $this->envatoClient()->performGet('/v3/market/author/sales', $params);
}

/**
* @param string $code
*
* @throws \GuzzleHttp\Exception\GuzzleException
*
* @return \InfyOmLabs\LaravelEnvato\Client\EnvatoResponse
*/
public function authorSaleByCode($code)
{
$params = [
'code' => $code,
];

return $this->envatoClient()->performGet('/v3/market/author/sale', $params);
}

/**
* @param array $params
*
Expand Down

0 comments on commit 1ee2be1

Please sign in to comment.