承接 friends-of-vertex-cards/api-client 相关项目开发

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

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

friends-of-vertex-cards/api-client

最新稳定版本:v0.6

Composer 安装命令:

composer require friends-of-vertex-cards/api-client

包简介

PHP library for Vertex Cards API interaction

README 文档

README

PHP library for Vertex Cards API interaction

Supported PHP Versions

  • PHP 8.3+

Documentation

1. Installation

The Vertex Cards API Client can be installed using Composer by running the following command:

composer require friends-of-vertex-cards/api-client

2. Getting API token

The library provides authorization flows for users based on a custom header.

Proceed to documentation to obtain your Live API Key and Company Uuid.

3. Client Initialization

Create ApiClient object using the following code:

$apiKey = 'your-api-key'; // step 2. Getting API token
$factory = new \FriendsOfVertexCards\ApiClient\VertexCardsClientFactory(
            new \Http\Adapter\Guzzle7\Client(),
            new \Symfony\Component\Serializer\Serializer(),
            'https://gateway.vertex-cards.com',
            '/api/v1/cards',
            new \Psr\Log\NullLogger(),
);

$client = $factory->create(new ConfigureDto($apiKey));

Also you can implement your own factory by implementing \FriendsOfVertexCards\ApiClient\VertexCardsClientFactoryInterface

4. API Requests

You can find the full list of API methods here.

4.1 Request Sample

Example of getting accounts:

$companyUuid = Ramsey\Uuid\Uuid::fromString('your-company-uuid') // step 2. Getting API token
$apiKey = 'your-api-key'; // step 2. Getting API token
/** @var \FriendsOfVertexCards\ApiClient\VertexCardsClientInterface $client */
$client = $factory->create(new ConfigureDto($apiKey)); // step 3. Client Initialization

/** @var \FriendsOfVertexCards\ApiClient\Account\List\GetListAccountResponse $accounts */
$accounts = $client->getAccounts(new \FriendsOfVertexCards\ApiClient\Account\List\GetListAccountRequest($companyUuid, 1, 10));

5. Use cases

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-10-11