gentor/oauth1-etsy

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

1.0.4 2020-09-03 12:58 UTC

This package is auto-updated.

Last update: 2024-08-29 04:31:29 UTC


README

Latest Stable Version License Total Downloads

此软件包为 PHP League 的 OAuth 1.0 客户端 提供了 Etsy API OAuth 1.0 支持。

安装

通过 Composer

$ composer require gentor/oauth1-etsy

使用方法

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

$server = new Gentor\OAuth1Etsy\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)。有关更多信息,请参阅 许可证文件