Class Attachment
Attachment
- Baguette\Mastodon\Entity\Entity implements Teto\Object\ToArrayInterface
- 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
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
public
|
|
public
array
|
__get(),
__isset(),
__set(),
__unset()
|
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) |