From aed5eef43bd4bc8841664dca679dd56efd19a6b0 Mon Sep 17 00:00:00 2001 From: Morten Poul Jensen Date: Tue, 30 Jan 2018 19:09:23 +0100 Subject: [PATCH] Update readme --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f657d33..107ed60 100644 --- a/README.md +++ b/README.md @@ -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); @@ -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.