Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
pactode committed Jan 30, 2018
1 parent 8caa899 commit aed5eef
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@

The `signifly/laravel-shopify` package allows you to easily make requests to the Shopify API.

Below is a small example of how to use it. For now it only supports private app credentials.
Below is a small example of how to use it.

```php
$shopify = new \Signifly\Shopify\Shopify('api-key', 'password', 'handle');
use Signifly\Shopify\Shopify;

$shopify = app()->make(Shopify::class);

// Retrieve all products
$shopify->products()->all();

// Count all products
$shopify->products()->cancel();
$shopify->products()->count();

// Update a product
$shopify->products()->update($id, $data);
Expand All @@ -20,6 +22,8 @@ $shopify->products()->update($id, $data);
$shopify->products()->destroy($id);
```

Check the Shopify API reference to see what is available for each resource.

## Documentation
Until further documentation is provided, please have a look at the tests.

Expand Down

0 comments on commit aed5eef

Please sign in to comment.