gesistsa / rtoot

:mammoth: R package to interact with the mastodon API
https://gesistsa.github.io/rtoot/
Other
104 stars 14 forks source link

Add Notification Access #121

Closed pbulsink closed 1 year ago

pbulsink commented 1 year ago

It would be convenient to have API access to notifications, either by streaming (https://docs.joinmastodon.org/methods/streaming/#notification) or directly (https://docs.joinmastodon.org/methods/notifications/). This would simplify the creation of interactive applications (i.e. responding to a mentioning status, interacting with users who favourite/reblog, etc.).

schochastics commented 1 year ago

@pbulsink: The return is a bit more complicated then the standard API output. But if you need it right now, you can use an unexported function: rtoot:::process_request(path="/api/v1/notifications",params=list())

chainsawriot commented 1 year ago

34

schochastics commented 1 year ago

with the new generic function: rtoot(endpoint = "api/v1/notifications")

schochastics commented 1 year ago

Not going to add this due to complex return structure. If needed, please use the generic rtoot(endpoint = "api/v1/notifications")