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 Attachment

Attachment

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

Returns attachment data as array

Returns attachment data as array

Returns

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

ID of the attachment

public read-only string $type

One of: "image", "video", "gifv"

public read-only string $url

URL of the locally hosted version of the image

public read-only string $remote_url

For remote images, the remote URL of the original image

public read-only string $preview_url

URL of the preview image

public read-only string $text_url

Shorter URL for the image, for insertion into text (only present on local images)

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