seregatte / shopify-guzzle-api
A Wrapper using Guzzle for a Shopify API and compatible with Google AppEngine
Installs: 56
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/seregatte/shopify-guzzle-api
Requires
- php: >=5.4.0
- guzzlehttp/guzzle: ~5.0
This package is not auto-updated.
Last update: 2025-09-23 23:06:19 UTC
README
A Wrapper using Guzzle for a Shopify API and compatible with Google AppEngine
This library is mean to be a Oriented Object Way to access a Shopify Api using the Guzzle instead of CURL, because of that, this library is compatible with Google App Engine.
##Usage
What you need to do for get this library, is putting the following code into your composer.json file:
"require": {
"seregatte/shopify-guzzle-api: "dev-master",
}
And to use our library into you PHP code, like this:
<?php require_once __DIR__.'/vendor/autoload.php'; use seregatte\ShopifyGuzzleApi; $shopId = 'shopname.myshopify.com'; $shopToken = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; $app_api_key = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; //App Api Key $app_credential_secret = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; //App Credential Sets $client = new ShopifyGuzzleApi\Api( $shopId, $app_api_key, $shopToken, $app_credential_secret ); $queryParams = ['published_status'=>'published']; $response = $client->setParams($queryParams)->get('/admin/products.json'); $json = $response->json(); var_dump($json['products'])
TODO
- Make a better documentation, with more examples.
- Cover the code with unit tests.
- Make a Skeleton App using this library.