Overview

Namespaces

  • Baguette
    • Mastodon
      • Config
      • Entity
      • Grant
      • Service
  • GuzzleHttp
    • Cookie
    • Exception
    • Handler
    • Promise
  • Psr
    • Http
      • Message
  • Teto
    • Object

Classes

  • CodeGrant
  • Grant
  • NoopGrant
  • PasswordCredential
  • Overview
  • Namespace
  • Class

Class CodeGrant

Mastodon Authorization Code grant

Baguette\Mastodon\Grant\Grant
Extended by Baguette\Mastodon\Grant\CodeGrant
Namespace: Baguette\Mastodon\Grant
Copyright: 2017 Baguette HQ
License: GPL-3.0
Author: USAMI Kenta tadsan@zonu.me
See: https://tools.ietf.org/html/draft-ietf-oauth-v2-22#section-4.1
Located at Grant/CodeGrant.php
Methods summary
public
# __construct( string $code, string $redirect_uri )

Parameters

$code
$redirect_uri
public static string
# getRedirectUrl( Baguette\Mastodon\Client $client, Baguette\Mastodon\Service\AuthFactory $auth, Baguette\Mastodon\Service\Scope $scope, string $callback_uri, string $state = null )

Parameters

$client
$auth
$scope
$callback_uri
$state

Returns

string
public Psr\Http\Message\ResponseInterface
# auth( GuzzleHttp\ClientInterface $http, Baguette\Mastodon\Service\AuthFactory $factory, Baguette\Mastodon\Service\Scope $scope = null )

Parameters

$http
$factory
$scope

Returns

Psr\Http\Message\ResponseInterface
Methods inherited from Baguette\Mastodon\Grant\Grant
getFormParams(), getFormParamsWithSecret(), getPathToOAuthToken()
ξ ^ω^)ξ Baguette PHP Mastodon API Client / SDK API documentation generated by ApiGen