A client library implementing the full v1 REST API protocol for Mastodon in Guile
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7.9 KiB

media-attachments Module


Table of Contents

  1. <mastodon-attachment>
  2. <mastodon-meta-focus>
  3. <mastodon-meta-subtree>
  4. <mastodon-meta>
  5. masto-attachment-blurhash
  6. masto-attachment-description
  7. masto-attachment-id
  8. masto-attachment-meta
  9. masto-attachment-preview-url
  10. masto-attachment-remote-url
  11. masto-attachment-text-url
  12. masto-attachment-type
  13. masto-attachment-url
  14. masto-attachment?
  15. masto-media-update
  16. masto-media-upload
  17. masto-meta-focus
  18. masto-meta-focus-x
  19. masto-meta-focus-y
  20. masto-meta-focus?
  21. masto-meta-original
  22. masto-meta-small
  23. masto-meta-subtree-aspect
  24. masto-meta-subtree-bitrate
  25. masto-meta-subtree-duration
  26. masto-meta-subtree-frame-rate
  27. masto-meta-subtree-height
  28. masto-meta-subtree-size
  29. masto-meta-subtree-width
  30. masto-meta-subtree?
  31. masto-meta?


<mastodon-attachment>

Summary

A record object that can be returned by an API call.

Record Fields

id
type
url
remoteURL
previewURL
textURL
meta
description
blurhash


<mastodon-meta-focus>

Summary

A record object that can be returned by an API call.

Record Fields

x
y


<mastodon-meta-subtree>

Summary

A record object that can be returned by an API call.

Record Fields

width
height
size
aspect
frameRate
duration
bitrate


<mastodon-meta>

Summary

A record object that can be returned by an API call.

Record Fields

small
original
focus


masto-attachment-blurhash

Summary

#f

Parameters

#f03c15 s


masto-attachment-description

Summary

#f

Parameters

#f03c15 s


masto-attachment-id

Summary

#f

Parameters

#f03c15 s


masto-attachment-meta

Summary

#f

Parameters

#f03c15 s


masto-attachment-preview-url

Summary

#f

Parameters

#f03c15 s


masto-attachment-remote-url

Summary

#f

Parameters

#f03c15 s


masto-attachment-text-url

Summary

#f

Parameters

#f03c15 s


masto-attachment-type

Summary

#f

Parameters

#f03c15 s


masto-attachment-url

Summary

#f

Parameters

#f03c15 s


masto-attachment?

Summary

#f

Parameters

#f03c15 obj


masto-media-update

Summary

Update media, with ID of mediaID, at the instance tied to mastoApp.

Keyword arguments #:description, #:x, and #:y are all optional but #:x and #:y must both be provided, if one or the other is provided at all. #:description has a character limit of 420 characters.

The media can only be updated before it is attached to a status and posted.

This function returns a <mastodon-attachment> of the media that was updated.

Find the original documentation here.

Parameters

#f03c15 mastoApp
#f03c15 mediaID
#1589F0 #:description (argument position 3)
#1589F0 #:x (argument position 4)
#1589F0 #:y (argument position 5)


masto-media-upload

Summary

Upload media, locally stored at filePath, to the instance tied to mastoApp.

Keyword arguments #:description, #:x, and #:y are all optional but #:x and #:y must both be provided, if one or the other is provided at all. #:description has a character limit of 420 characters.

This function returns a <mastodon-attachment> of the media that was uploaded.

Find the original documentation here.

Parameters

#f03c15 mastoApp
#f03c15 filePath
#1589F0 #:description (argument position 3)
#1589F0 #:x (argument position 4)
#1589F0 #:y (argument position 5)


masto-meta-focus

Summary

#f

Parameters

#f03c15 s


masto-meta-focus-x

Summary

#f

Parameters

#f03c15 s


masto-meta-focus-y

Summary

#f

Parameters

#f03c15 s


masto-meta-focus?

Summary

#f

Parameters

#f03c15 obj


masto-meta-original

Summary

#f

Parameters

#f03c15 s


masto-meta-small

Summary

#f

Parameters

#f03c15 s


masto-meta-subtree-aspect

Summary

#f

Parameters

#f03c15 s


masto-meta-subtree-bitrate

Summary

#f

Parameters

#f03c15 s


masto-meta-subtree-duration

Summary

#f

Parameters

#f03c15 s


masto-meta-subtree-frame-rate

Summary

#f

Parameters

#f03c15 s


masto-meta-subtree-height

Summary

#f

Parameters

#f03c15 s


masto-meta-subtree-size

Summary

#f

Parameters

#f03c15 s


masto-meta-subtree-width

Summary

#f

Parameters

#f03c15 s


masto-meta-subtree?

Summary

#f

Parameters

#f03c15 obj


masto-meta?

Summary

#f

Parameters

#f03c15 obj