wienkit/beslist-shopitem-api-php-client 问题修复 & 功能扩展

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

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

wienkit/beslist-shopitem-api-php-client

最新稳定版本:2.0.4

Composer 安装命令:

composer require wienkit/beslist-shopitem-api-php-client

包简介

Beslist.nl Shopitem API client PHP

README 文档

README

This is an open source PHP client for the Beslist.nl Shopitem API.

Installation

Get it with composer

Run the command:

composer require wienkit/beslist-shopitem-api-php-client

Examples

<?php

require __DIR__ . '/vendor/autoload.php';

$apiKey = '-- ENTER YOUR SHOPITEM API KEY --';

$this->client = new Wienkit\BeslistShopitemClient\BeslistShopitemClient($apiKey);
$this->client->setTestMode(TRUE);

// Authenticate with the API
$shops = $this->client->authenticate();
var_dump($shops);

// Get a shopitem
$shopId = 12345;
$itemId = '12abcd13';
$shopItem = $this->client->getShopItem($shopId, $itemId);
var_dump($shopItem);

// Update a shopitem
$shopId = 12345;
$itemId = '12abcd13';
$update = [
    'price' => 12.00,
    'discount_price' => 10.00,
    'delivery_cost_nl' => 5.00,
    'delivery_cost_be' => 6.00,
    'delivery_time_nl' => '24 uur',
    'delivery_time_be' => '48 uur',
    'stock' => 5
];
$this->client->updateShopItem($shopId, $itemId, $update);

See the tests folder for more information and examples.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-07-07