在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):compufox/mastodon-cl开源软件地址(OpenSource Url):https://github.com/compufox/mastodon-cl开源编程语言(OpenSource Language):Common Lisp 100.0%开源软件介绍(OpenSource Introduction):mastodon-cla mastodon API wrapper written in Common Lisp! currently not on quicklisp, but supports being loaded by it, assuming your folders are properly set up (ql:quickload :mastodon)
(masto:register-application "My Awesome App" :instance "cybre.space" :scopes '("read" "write" "follow"))
(masto:login "[email protected]" "myFantasticPassword1!" :scopes '("read" "write" "follow"))
(masto:post-status "Hello from Lisp!") Setting a content warning:(masto:post-status "this post should be hidden" :cw "Hiding that post!") Adding pictures to a status (and setting the picture to NSFW):(masto:post-status "this post should have images attached" :media '("/path/to/file.png" "/path/to/another.jpg") :nsfw t) Setting different visibility options for a post:(masto:post-status "This post is unlisted :eyes:" :visibility "unlisted") Getting timelines:(masto:get-home-timeline)
(masto:get-local-timeline :limit 30)
(masto:get-notifications) Timeline streaming is also supported! (very much a WIP as of right now)(mastodon.streaming:stream-home)
(mastodon.streaming:stream-notifications) If you want full access to the api look in the package mastodon.api (gets loaded with the mastodon package). It exposes a lot more of the direct mastodon api to play with! Feel free to submit PRs and issues! If you need to reach me, I'm on Mastodon @[email protected] |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论