定制 ekvio-dev/giftery 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

ekvio-dev/giftery

最新稳定版本:2.0.0

Composer 安装命令:

composer create-project ekvio-dev/giftery

包简介

Giftery API client

README 文档

README


About The Project

Another HTTP client for Giftery API with support PSR 7/17/18 compatible HTTP client

Getting Started

Before use API client you need get credentials pair of Client ID and Client Secret from Giftery Administration

Installation

Install from packagist

   composer install ekvio-dev/giftery

Usage

Create GifteryApi object with Http client. By default, project supports CURL implementation.

   $apiClient = new \Giftery\GifteryApi(new CurlClient(), 12345, 'secret');
   $response = $apiClient->getBalance();

or you can use PSR 7/17/18 compatible HTTP client (example: ghuzzle)

    $httpFactory = new \GuzzleHttp\Psr7\HttpFactory();
    $httpClient = new \GuzzleHttp\Client();

    $psrClient = new \Giftery\PsrHttpClient($httpFactory, $httpClient);
    $apiClient - new \Giftery\GifteryApi($psrClient, 12345, 'secret');
    $response = $apiClient->getBalance();

or you can create you Giftery\HttpClient implementation.

API client support methods: getBalance, getProducts, makeOrder, getStatus, getCertificate, getCode, getLinks, getCategories, getAddress, test.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-01-22