indeximstudio/oauth1-etsy

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

dev-master 2022-09-07 06:46 UTC

This package is not auto-updated.

Last update: 2024-09-18 19:54:25 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)。有关更多信息,请参阅 许可证文件