We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f27b66c commit afc43b8Copy full SHA for afc43b8
test/index.php
@@ -0,0 +1,20 @@
1
+<?php
2
+require(__DIR__ . '/../vendor/autoload.php');
3
+
4
+use Shopify\PrivateApp;
5
+use rdx\graphqlquery\Query;
6
7
+$shop = 'jewellerystones.myshopify.com';
8
+$api_key = '4ba2e1a4c6324358ef8d51995b59b8d8';
9
+$password = '21045bc023f2af12733de9f4b737d865';
10
+$api_params['version'] = '2019-07';
11
+try {
12
+ $client = new Shopify\PrivateApp($shop, $api_key, $password, $api_params);
13
+ /**rest api call**/
14
+ $response = $client->call('GET', 'products', ['limit' => 1]);
15
+ print_r($response);
16
+}
17
+catch (\Shopify\Exception\ApiException $e)
18
+{
19
+ echo "Errors: ".$e->getError().'<br> status code: '.$e->getCode();
20
0 commit comments