Skip to content

Commit

Permalink
Some nice design as well 👌
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoli Nicolae <nicolaeanatoli@gmail.com>
  • Loading branch information
anatolinicolae committed Feb 1, 2018
1 parent 8582ea3 commit 06de6a7
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@

<p align="center">
<img src="media/icon@2x.png" width="128" />
<h3 align="center">envato-api</h3>
<p align="center">Envato Marketplace API</p>
</p>

## What's different in this package?
Of course there are a lot of similar libraries, but this one should be the simplest and the most complete one of them all—at least that what we hope.

## Tech stack
The API is written in PHP, relies on [Guzzle](https://github.com/guzzle/guzzle) to consume the Envato Marketplace API and that's pretty much it.

## How to use
1. Require the package
```
composer require thundersquared/envato-api
```
2. Load composer packages
```php
require_once __DIR__ . '/vendor/autoload.php';
```
3. Instantiate the class
```php
$client = new \sqrd\Envato\API('your-personal-token-here', 'optional-user-agent-here');
```
or use a nicer style
```php
use \sqrd\Envato\API as Client;
$client = new Client('your-personal-token-here', 'optional-user-agent-here');
```
3. Use them calls
```php
$client->getCollection($site, $args);
$client->getItem($site, $args);
$client->searchItems($site, $args);
$client->searchComments($site, $args);
$client->getPopularItems($site, $args);
$client->getCategories($site, $args);
$client->getItemPrices($site, $args);
$client->getNewItems($site, $category, $args);
$client->getFeaturedItems($site, $args);
$client->getRandomNewFiles($site, $args);
$client->getUserCollections($args);
$client->getPrivateCollection($args);
$client->getUsersDetails($username, $args);
$client->getUsersBadges($username, $args);
$client->getUsersItems($username, $args);
$client->getUsersNewItems($username, $site, $args);
$client->getSales($args);
$client->getSaleByCode($args);
$client->getPurchases($args);
$client->getPurchaseByCode($args);
$client->getPrivateUserDetails($args);
$client->getUsername($args);
$client->getEmail($args);
$client->getSalesByMonth($args);
$client->getTotalMarketUsers($args);
$client->getTotalMarketItems($args);
$client->getTotalFilesBySite($site, $args)
```

## License
The code in this repo and used modules are open-sourced software licensed under the [MIT license](LICENSE.md).
Binary file added media/assets.sketch
Binary file not shown.
Binary file added media/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/icon@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/icon@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/icon@4x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 06de6a7

Please sign in to comment.