coddin-web/lightspeed-php-sdk 问题修复 & 功能扩展

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

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

coddin-web/lightspeed-php-sdk

Composer 安装命令:

composer require coddin-web/lightspeed-php-sdk

包简介

An improved PHP client for the Lightspeed eCom API

README 文档

README

Lightspeed eCom

Latest Stable Version Latest Unstable Version License

Improved Lightspeed eCom PHP API client

This package is a convenience wrapper to communicate with the Lightspeed eCom REST-API.

Requirements

To use the Lightspeed eCom PHP API client, the following things are required:

  • PHP >= 5.4
  • cURL, JSON, mbstring and FileInfo PHP extensions

Installation

By far the easiest way to install the Lightspeed eCom PHP API client is to require it with Composer.

$ composer require coddin-web/lightspeed-php-sdk:^1.9
{
    "require": {
        "coddin-web/lightspeed-php-sdk": "^1.9"
    }
}

Usage

There are a lot of API resources that are accessible through this client. You can look them up by looking at the code. Their name matches the name in the documentation.

<?php
require 'vendor/autoload.php';

$client = new \Lightspeed\ApiClient('[api-server]', '[api-key]', '[api-secret]', '[language]');

$shopInfo = $client->shop->get();

Explanation

[api-server] Available server(-clusters): live, eu1, us1

[api-key] The API key you've received or created

[api-secret] The API secret you've received or created

[language] Language shortcode that's available in the shop you're connecting to

Fetching response headers

After making a call, you can fetch the response headers from our API server and use it to check important data such as rate limiting.

$shopInfo = $client->shop->get();
$response = $shopInfo->getResponseHeaders();

Getting started

Lightspeed eCom offers a powerful set of API’s for developers to create awesome apps. The API provides developers the interface to connect with third party software such as accounting-, feedback-, e-mailmarketing- and inventory management-software, or extend with new features that interact with our core platform, such as loyalty programs, social-sharing programs or reporting tools.

Getting started with Lightspeed eCom is easy. Not a partner yet? Please sign up as a partner and claim your account details and API keys.

Read our tutorials on how to build and publish your first app. Check our introduction to find out how to use the API

Documentation

More documentation can be found at developers.lightspeedhq.com/ecom

Contributing

Send a PR!

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-05-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固