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.

4.0 KiB

polls Module


Table of Contents

  1. <mastodon-poll-option>
  2. <mastodon-poll>
  3. masto-poll-expired
  4. masto-poll-expires-at
  5. masto-poll-id
  6. masto-poll-multiple
  7. masto-poll-option-title
  8. masto-poll-option-votes-count
  9. masto-poll-option?
  10. masto-poll-options
  11. masto-poll-voted
  12. masto-poll-votes-count
  13. masto-poll?
  14. masto-poll-get
  15. masto-poll-send-vote


<mastodon-poll-option>

Summary

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

Record Fields

title
votesCount


<mastodon-poll>

Summary

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

Record Fields

id
expiresAt
expired
multiple
votesCount
options
voted


masto-poll-expired

Summary

#f

Parameters

#f03c15 s


masto-poll-expires-at

Summary

#f

Parameters

#f03c15 s


masto-poll-id

Summary

#f

Parameters

#f03c15 s


masto-poll-multiple

Summary

#f

Parameters

#f03c15 s


masto-poll-option-title

Summary

#f

Parameters

#f03c15 s


masto-poll-option-votes-count

Summary

#f

Parameters

#f03c15 s


masto-poll-option?

Summary

#f

Parameters

#f03c15 obj


masto-poll-options

Summary

#f

Parameters

#f03c15 s


masto-poll-voted

Summary

#f

Parameters

#f03c15 s


masto-poll-votes-count

Summary

#f

Parameters

#f03c15 s


masto-poll?

Summary

#f

Parameters

#f03c15 obj


masto-poll-get

Summary

View a poll with the ID pollID.

domainOrApp can be the instance domain as a String or a <mastodon-instance-application>, whose associated domain will be used instead.

If the parent status of the poll in question is private, you will need to use a <mastodon-instance-application> for domainOrApp in order to determine if the user has permission to view the poll.

A <mastodon-poll> is returned.

Find the original documentation here.

Parameters

#f03c15 domainOrApp
#f03c15 pollID


masto-poll-send-vote

Summary

Vote in a pole with the ID pollID for the user tied to mastoApp.

choices are a list of integers containing the index of each poll option you wish to vote for.

A <mastodon-poll> is returned.

Find the original documentation here.

Parameters

#f03c15 mastoApp
#f03c15 pollID
#f03c15 choices