开源软件名称(OpenSource Name):okapies/akka-mastodon开源软件地址(OpenSource Url):https://github.com/okapies/akka-mastodon开源编程语言(OpenSource Language):Scala 100.0%开源软件介绍(OpenSource Introduction):akka-mastodonMastodon client based on Akka Streams. Usageimport akka.actor.ActorSystem
import akka.http.scaladsl.Http
import akka.stream.ActorMaterializer
import com.github.okapies.akka.mastodon.Timeline
import com.github.okapies.akka.mastodon.scaladsl.MastodonClient
implicit val system = ActorSystem()
implicit val materializer = ActorMaterializer()
implicit val executionContext = system.dispatcher
val mastodonHost = "https://..."
val accessToken = "..."
MastodonClient(mastodonHost, accessToken)
.timelines(Timeline.home())
.runForeach { status => println(status) }
.andThen { _ =>
Http().shutdownAllConnectionPools().onComplete(_ => system.terminate())
} |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论