miguelbemartin/buffer-sdk-php

此库允许您使用PHP调用Buffer API

v1.0.5 2022-06-28 09:43 UTC

This package is auto-updated.

Last update: 2024-09-28 14:52:38 UTC


README

Build Status

此库允许您通过PHP快速轻松地使用Buffer Web API v1。

官方文档

入门

先决条件

  • PHP >=7.2

安装

在终端中运行以下命令

composer require miguelbemartin/buffer-sdk-php

用法

// Create a new AuthorizationToken
$auth = new AuthorizationToken('XXX');

// Create a new Buffer Wrapper Client
$buffer = new Buffer($auth);

// Get User
$user = $buffer->userService->getUser();

// Get the profiles
$profiles = $buffer->profileService->getProfiles();

运行测试

./vendor/bin/phpunit

贡献

作者

许可证

本项目采用MIT许可证 - 详细信息请参阅LICENSE.md文件。