seregatte/shopify-guzzle-api 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

seregatte/shopify-guzzle-api

最新稳定版本:v1.0.0

Composer 安装命令:

composer require seregatte/shopify-guzzle-api

包简介

A Wrapper using Guzzle for a Shopify API and compatible with Google AppEngine

README 文档

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.

统计信息

  • 总下载量: 56
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-04-04