承接 dataprovider/sdk 相关项目开发

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

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

dataprovider/sdk

最新稳定版本:v1.0.0

Composer 安装命令:

composer require dataprovider/sdk

包简介

SDK for https://api.dataprovider.com

README 文档

README

A lightweight SDK for interacting with the Dataprovider.com API in PHP.
This client provides a convenient way to authenticate, build requests, and handle responses for GET, POST, and PUT operations.

🚀 Installation

Use Composer to install the SDK:

composer require dataprovider/sdk

✅ Requirements

  • PHP >= 8.3
  • PHP cURL extension enabled
  • Composer for dependency management

🔧 Usage

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

use Dataprovider\SDK\Client\ApiClient;

$apiClient = new ApiClient("username", "password");

try {
    $response = $apiClient->get('/datasets/list');
} catch (RuntimeException $e) {
    echo "An error occurred ({$e->getCode()}): {$e->getMessage()}" . PHP_EOL;
    return;
}

// Access the response data as text
print_r($response->getBody());

// Access the response data as array ($associative=true) or object ($associative=false)
print_r($response->getJsonBody(true));

See examples for more.

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

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