Modern PHP 5.3 Shopify API for use with Zendframework 2
PHP
Switch branches/tags
Nothing to show
Latest commit 3a1de3c Apr 10, 2014 @mathewpeterson mathewpeterson Merge pull request #2 from mark1979smith/patch-1
Update Client.php to use the correct response method.
Permalink
Failed to load latest commit information.
library/Shopify Update Client.php Apr 10, 2014
README.md Added Readme. Sep 22, 2011

README.md

PHP-Shopify-API

Basic Example

<?php
        define('API_KEY', 'xxxxx');
        define('SECRET', 'xxxxx');

        require_once('Zend/Loader/StandardAutoloader.php');

        $loader = new \Zend\Loader\StandardAutoloader();
        $loader->registerNamespaces(array(
                'Zend' => __DIR__ .'/library/Zend',
                'Shopify' => __DIR__ .'/library/Shopify'
        ));
        $loader->register();

        $client = new \Shopify\Client(array(
                'shop'    => $_GET['shop'],
                'api_key' => API_KEY,
                'secret'  => SECRET,
                'token'   => $_GET['t']
        ));

        $ShopifyProduct = new \Shopify\Resource\Product(array(
                'client' => $client
        ));

        $products = $ShopifyProduct->getAll(array(
                'fields'=> array('id'),
                'collection_id' => '3782202'
        ));

        print_r($products);