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 Grant

Mastodon grant request class

Direct known subclasses

Baguette\Mastodon\Grant\CodeGrant, Baguette\Mastodon\Grant\NoopGrant, Baguette\Mastodon\Grant\PasswordCredential
Abstract
Namespace: Baguette\Mastodon\Grant
Copyright: 2017 Baguette HQ
License: GPL-3.0
Author: USAMI Kenta tadsan@zonu.me
Located at Grant/Grant.php
Methods summary
abstract public
# auth( GuzzleHttp\ClientInterface $http, Baguette\Mastodon\Service\AuthFactory $factory, Baguette\Mastodon\Service\Scope $scope )

Parameters

$http
$factory
$scope
protected static string
# getPathToOAuthToken( Baguette\Mastodon\Client $client )

Returns

string
protected static array
# getFormParams( Baguette\Mastodon\Service\AuthFactory $factory )

Returns

array
protected static array
# getFormParamsWithSecret( Baguette\Mastodon\Service\AuthFactory $factory )

Returns

array
ξ ^ω^)ξ Baguette PHP Mastodon API Client / SDK API documentation generated by ApiGen