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 PasswordCredential

Mastodon password credential grant

Baguette\Mastodon\Grant\Grant
Extended by Baguette\Mastodon\Grant\PasswordCredential
Namespace: Baguette\Mastodon\Grant
Copyright: 2017 Baguette HQ
License: GPL-3.0
Author: USAMI Kenta tadsan@zonu.me
Located at Grant/PasswordCredential.php
Methods summary
public
# __construct( string $username, string $password )

Parameters

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

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