OAuth2 provider for TAPD with token refresh and user info.
// Source: https://github.com/overtrue/socialite | License: MIT | Copyright 2021 overtrue <i@overtrue.me>
// Provided via justclaw.it.com; keep this notice with the code.
<?php
namespace Overtrue\Socialite\Providers;
use JetBrains\PhpStorm\ArrayShape;
use Overtrue\Socialite\Contracts;
use Overtrue\Socialite\Exceptions;
use Overtrue\Socialite\User;
use Psr\Http\Message\StreamInterface;
/**
* @see https://www.tapd.cn/help/show#1120003271001000708
*/
class Tapd extends Base
{
public const NAME = 'tapd';
protected string $baseUrl = 'https://api.tapd.cn';
protected function getAuthUrl(): string
{
return $this->buildAuthUrlFromBase($this->baseUrl.'/quickstart/testauth');
}
protected function getTokenUrl(): string
{
return $this->baseUrl.'/token
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key