ne/api 问题修复 & 功能扩展

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

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

ne/api

最新稳定版本:1.0.0

Composer 安装命令:

composer require ne/api

包简介

NE DistriService API Client

README 文档

README

Basic PHP example code to get you started with NE DistriService's API. You'll need an account to use this API.

See https://orders.ne.nl/apidoc/ for instructions on how to get set up. The documentation page has code examples too.

Use our Contact form to get an account or request access: https://www.ne.nl/contact/

Installation

composer require ne/api

Basic usage

require 'vendor/autoload.php';

use Ne\Api\TokenHelper;
use Ne\Api\Client;

// Private key, copied from API management page
$private_key = '-----BEGIN PRIVATE KEY-----
[...]
-----END PRIVATE KEY-----';

// Generate JWT
$helper = new TokenHelper('your@email.addr', $private_key);
$token = $helper->getToken('nonce123');

// Make request using JWT
$client = new Client($token);
$resp = $client->get(Client::ENDPOINT_PING, []);

var_dump($resp);

统计信息

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

GitHub 信息

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

其他信息

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