y0lk/oauth1-etsy

为 The PHP League OAuth1-Client 提供的 Etsy API OAuth 1.0 客户端提供者

1.1.0 2021-02-03 16:15 UTC

This package is auto-updated.

Last update: 2024-08-29 04:17:57 UTC


README

Latest Stable Version Build Status License Total Downloads

此包为 PHP League 的 OAuth 1.0 客户端提供 Etsy API OAuth 1.0 支持。[链接](https://github.com/thephpleague/oauth1-client)。

安装

通过 Composer

$ composer require y0lk/oauth1-etsy

用法

用法与 The League 的 OAuth 客户端相同,使用 Y0lk\OAuth1\Client\Server\Etsy 作为提供者。

$server = new Y0lk\OAuth1\Client\Server\Etsy([
    'identifier'   	=> 'your-client-id',
    'secret'       	=> 'your-client-secret',
    'scope'			=> '', //See Etsy documentation for the full list of permission scopes
    'callback_uri' 	=> 'http://callback.url/callback'
]);

权限范围

请参阅 Etsy 文档了解权限范围

许可证

MIT 许可证 (MIT)。请参阅许可证文件获取更多信息。