承接 shipdeo/api 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

shipdeo/api

最新稳定版本:v1.0.2

Composer 安装命令:

composer require shipdeo/api

包简介

A Shipdeo API package

README 文档

README

A Shipdeo API package.

1. Installation

You can install the package via composer:

composer require shipdeo/api

2. Configuration

Add the following environment variables to your .env file:

SHIPDEO_CLIENT_ID=your-client-id
SHIPDEO_CLIENT_SECRET=your-client-secret
SHIPDEO_PLATFORM=your-platform
SHIPDEO_AUTH_URL=https://auth-api-development.shipdeo.com/oauth2/connect/token

3. Usage

Authenticationg

use Shipdeo\Facades\Shipdeo;

$authService = app('shipdeo.auth');
$response = $authService->authenticate(
    config('shipdeo.auth.client_id'),
    config('shipdeo.auth.client_secret'),
    'your-username',
    'your-password',
    config('shipdeo.auth.platform')
);

echo $response['accessToken'];

Step 4: Autoload Dependencies

Make sure to update your composer.json to include the necessary dependencies:

"require": {
    "php": ">=7.4",
    "guzzlehttp/guzzle": "^7.0"
}

Run composer update to install the new dependencies.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-06-13