Java client library for the Bluesky/ATProtocol API. This can compile with google/j2objc to Objective-C library. (for iOS and Mac OS)
It is available with jitpack.io.
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
dependencies {
compile 'com.github.uakihir0:bsky4j:x.y.z'
}
Response<ServerCreateSessionResponse> response = BlueskyFactory
.getInstance(Service.BSKY_SOCIAL.getUri())
.server().createSession(
ServerCreateSessionRequest.builder()
.identifier("HANDLE")
.password("PASSWORD")
.build()
);
String accessJwt = response.get().getAccessJwt();
Response<FeedPostResponse> response = BlueskyFactory
.getInstance(Service.BSKY_SOCIAL.getUri())
.feed().post(
FeedPostRequest.builder()
.accessJwt(accessJwt)
.text("Hello World!!")
.build()
);
// https://plc.directory/did:plc:bwdof2anluuf5wmfy2upgulw
- @uakihir0.bsky.social
- Twitter:@uakihir0
This software is released under the MIT License, see LICENSE.txt.