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 Requester

Mastodon Anthorization object factory

Namespace: Baguette\Mastodon
Copyright: 2017 Baguette HQ
License: GPL-3.0
Author: USAMI Kenta tadsan@zonu.me
See: https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md
Located at Requester.php
Methods summary
public static Baguette\Mastodon\Entity\Account
# getAccount( Baguette\Mastodon\Client $client, Baguette\Mastodon\Service\SessionStorage $session, integer $id )

Fetching an account

Fetching an account

Parameters

$client
$session
$id

Returns

Baguette\Mastodon\Entity\Account

See

https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md#fetching-an-account
public static Baguette\Mastodon\Entity\Account
# getAccountCurrentUser( Baguette\Mastodon\Client $client, Baguette\Mastodon\Service\SessionStorage $session )

Getting the current user

Getting the current user

Parameters

$client
$session

Returns

Baguette\Mastodon\Entity\Account

See

https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md#getting-the-current-user
public static Baguette\Mastodon\Entity\Account
# updateAccount( Baguette\Mastodon\Client $client, Baguette\Mastodon\Service\SessionStorage $session, array $update_data )

Updating the current user

Updating the current user

Parameters

$client
$session
$update_data

Returns

Baguette\Mastodon\Entity\Account

See

https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md#updating-the-current-user
public static Baguette\Mastodon\Entity\Account[]
# getAccountFollowers( Baguette\Mastodon\Client $client, Baguette\Mastodon\Service\SessionStorage $session, integer $account_id )

Getting an account's followers

Getting an account's followers

Parameters

$client
$session
$account_id

Returns

Baguette\Mastodon\Entity\Account[]

See

https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md#updating-the-current-user
public static Baguette\Mastodon\Entity\Account[]
# getBlocks( Baguette\Mastodon\Client $client, Baguette\Mastodon\Service\SessionStorage $session, array $options = [] )

Fetching a user's blocks

Fetching a user's blocks

Parameters

$client
$session
$options

Returns

Baguette\Mastodon\Entity\Account[]

See

https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md#updating-the-current-user
public static Baguette\Mastodon\Entity\Status[]
# getFavourites( Baguette\Mastodon\Client $client, Baguette\Mastodon\Service\SessionStorage $session, array $options = [] )

Fetching a user's favourites

Fetching a user's favourites

Parameters

$client
$session
$options

Returns

Baguette\Mastodon\Entity\Status[]

See

https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md#updating-the-current-user
public static Baguette\Mastodon\Entity\Accounts
# getFollowRequests( Baguette\Mastodon\Client $client, Baguette\Mastodon\Service\SessionStorage $session, array $options = [] )

Fetching a list of follow requests

Fetching a list of follow requests

Parameters

$client
$session
$options

Returns

Baguette\Mastodon\Entity\Accounts

See

https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md#fetching-a-list-of-follow-requests
public static Baguette\Mastodon\Entity\Account
# postStatus( Baguette\Mastodon\Client $client, Baguette\Mastodon\Service\SessionStorage $session, Baguette\Mastodon\Service\Toot $toot )

Posting a new status

Posting a new status

Parameters

$client
$toot
$session
$toot

Returns

Baguette\Mastodon\Entity\Account

See

https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md#posting-a-new-status
public static Baguette\Mastodon\Entity\Account[]
# getStatus( Baguette\Mastodon\Client $client, Baguette\Mastodon\Service\SessionStorage $session, integer $status_id )

Getting an account's followers

Getting an account's followers

Parameters

$client
$session
$status_id

Returns

Baguette\Mastodon\Entity\Account[]

See

https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md#updating-the-current-user
ξ ^ω^)ξ Baguette PHP Mastodon API Client / SDK API documentation generated by ApiGen