Overview

Namespaces

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

Classes

  • Client
  • EntityCaster
  • Mastodon
  • Requester

Functions

  • authorization
  • credential
  • grant
  • http
  • request
  • scope
  • session
  • toot
  • Overview
  • Namespace
  • Class

Class Client

Mastodon API Client

Final
Namespace: Baguette\Mastodon
Copyright: 2017 Baguette HQ
License: GPL-3.0
Author: USAMI Kenta tadsan@zonu.me
Located at Client.php
Methods summary
public
# __construct( string $instance, array $options = [] )

Parameters

$instance
$options
public Psr\Http\Message\ResponseInterface
# requestAPI( string $method, string $path, array $options, Baguette\Mastodon\Service\SessionStorage $session )

Parameters

$method
"GET"|"POST"
$path
$options
$session

Returns

Psr\Http\Message\ResponseInterface
public
# setAPIHttpClient( GuzzleHttp\Client $client )
public string
# getScheme( )

Returns

string
public string
# getHostname( )

Returns

string
Constants summary
string USER_AGENT
# 'PhpMastodon/0.0.1(+https://github.com/zonuexe/php-mastodon-client)'
ξ ^ω^)ξ Baguette PHP Mastodon API Client / SDK API documentation generated by ApiGen