Overview

Namespaces

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

Classes

  • AuthFactory
  • Authorization
  • Scope
  • SessionStorage
  • Toot

Exceptions

  • AuthorizationException
  • Overview
  • Namespace
  • Class

Class AuthFactory

Mastodon Anthorization object factory

Baguette\Mastodon\Service\AuthFactory uses Teto\Object\PrivateGetter
Namespace: Baguette\Mastodon\Service
Copyright: 2017 Baguette HQ
License: GPL-3.0
Author: USAMI Kenta tadsan@zonu.me
Located at Service/AuthFactory.php
Methods summary
public
# __construct( Baguette\Mastodon\Client $client, string $client_id, string $client_secret )

Parameters

$client
$client_id
$client_secret
public
# setGrant( Baguette\Mastodon\Grant\Grant $grant )

Parameters

$grant
public Baguette\Mastodon\Service\Authorization
# authorize( Baguette\Mastodon\Service\Scope $scope )

Returns

Baguette\Mastodon\Service\Authorization
Methods used from Teto\Object\PrivateGetter
__get(), __isset()
Magic properties summary
public read-only Baguette\Mastodon\Client $client
public read-only string $client_id
public read-only string $client_secret
public read-only Baguette\Mastodon\Grant\Grant $grant
public read-only Baguette\Mastodon\Service\Scope $scope
ξ ^ω^)ξ Baguette PHP Mastodon API Client / SDK API documentation generated by ApiGen