Overview

Namespaces

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

Classes

  • Account
  • Application
  • Attachment
  • Card
  • Context
  • Entity
  • Error_
  • Instance
  • Mention
  • Notification
  • Status
  • Tag

Constants

  • DATETIME_FORMAT

Functions

  • map
  • mapValues
  • toArrayValue
  • Overview
  • Namespace
  • Class

Class Account

Account

Baguette\Mastodon\Entity\Entity implements Teto\Object\ToArrayInterface
Extended by Baguette\Mastodon\Entity\Account uses Teto\Object\TypedProperty
Namespace: Baguette\Mastodon\Entity
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#account
Located at Entity/Account.php
Methods summary
public
# __construct( array $properties )
public array
# toArray( )

Returns account data as array

Returns account data as array

Returns

array
Methods used from Teto\Object\TypedProperty
__get(), __isset(), __set(), __unset()
Magic properties summary
public read-only integer $id

The ID of the account

public read-only string $username

The username of the account

public read-only string $acct

Equals username for local users, includes @domain for remote ones

public read-only string $display_name

The account's display name

public read-only boolean $locked

Boolean for when the account cannot be followed without waiting for approval first

public read-only DateTimeImmutable $created_at

The time the account was created

public read-only integer $followers_count

The number of followers for the account

public read-only integer $following_count

The number of accounts the given account is following

public read-only integer $statuses_count

The number of statuses the account has made

public read-only string $note

Biography of user

public read-only string $url

URL of the user's profile page (can be remote)

public read-only string $avatar

URL to the avatar image

public read-only string $avatar_static

URL to the avatar static image (gif)

public read-only string $header

URL to the header image

public read-only string $header_static

URL to the header static image (gif)

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