haka002/prestashop-webservice-lib 问题修复 & 功能扩展

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

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

haka002/prestashop-webservice-lib

最新稳定版本:2.2.2

Composer 安装命令:

composer require haka002/prestashop-webservice-lib

包简介

PrestaShop Webservice access library.

README 文档

README

PHP library for PrestaShop Webservices

This repository is only because people want to use the webservice with PrestShop 1.7 also. The difference between the originally and this is only the max version number.

You can find the originnal documentation here: http://doc.prestashop.com/display/PS16/Web+service+one-page+documentation

// Here we define constants /!\ You need to replace this parameters
define('DEBUG', true);											// Debug mode
define('PS_SHOP_PATH', 'http://www.myshop.com/');		// Root path of your PrestaShop store
define('PS_WS_AUTH_KEY', 'ZQ88PRJX5VWQHCWE4EE7SQ7HPNX00RAJ');	// Auth key (Get it in your Back Office)
require_once('./PSWebServiceLibrary.php');

// Here we make the WebService Call
try
{
	$webService = new PrestaShopWebservice(PS_SHOP_PATH, PS_WS_AUTH_KEY, DEBUG);

	// Here we set the option array for the Webservice : we want customers resources
	$opt['resource'] = 'customers';

	// Call
	$xml = $webService->get($opt);
	// Here we get the elements from children of customers markup "customer"
	$resources = $xml->customers->children();
}

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 307
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2017-03-27