bsky ~main

Bluesky client


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

GitHub tag CI Status downloads BSL-1.0 codecov

Abstract

The client library of Bluesky.

Usage

dub add bsky

API Documents

Examlple codes

import std.stdio, std.process, std.range;
import bsky;
auto client = new Bluesky;
client.login(environment.get("BSKY_LOGINID"), environment.get("BSKY_LOGINPASS"));
scope (exit)
	client.logout();
foreach (post; client.timeline.take(100).toMessages)
	writeln(i"$(post.postBy.displayName) < $(post.text)");

Examples

List of Supported API

APISupported functions
app.bsky.actor.getPreferencesUNSUPPORTED
app.bsky.actor.getProfilebsky.client.Bluesky.getProfile <br /> bsky.client.Bluesky.profile
app.bsky.actor.getProfilesbsky.client.Bluesky.getProfiles <br /> bsky.client.Bluesky.fetchProfiles <br /> bsky.client.Bluesky.profiles
app.bsky.feed.getActorFeedsUNSUPPORTED
app.bsky.feed.getActorLikesUNSUPPORTED
app.bsky.feed.getAuthorFeedbsky.client.Bluesky.getAuthorFeed <br /> bsky.client.Bluesky.fetchAuthorFeed <br /> bsky.client.Bluesky.authorFeed
app.bsky.feed.getFeedGeneratorUNSUPPORTED
app.bsky.feed.getFeedGeneratorsUNSUPPORTED
app.bsky.feed.getFeedbsky.client.Bluesky.getFeed <br /> bsky.client.Bluesky.fetchFeed <br /> bsky.client.Bluesky.feed
app.bsky.feed.getLikesbsky.client.Bluesky.getLikes <br /> bsky.client.Bluesky.fetchLikeUsers <br /> bsky.client.Bluesky.likeUsers
app.bsky.feed.getListFeedbsky.client.Bluesky.getListFeed <br /> bsky.client.Bluesky.fetchListFeed <br /> bsky.client.Bluesky.listFeed
app.bsky.feed.getQuotesbsky.client.Bluesky.getQuotes <br /> bsky.client.Bluesky.fetchQuotedByPosts <br /> bsky.client.Bluesky.quotedByPosts
app.bsky.feed.getPostThreadUNSUPPORTED
app.bsky.feed.getPostsbsky.client.Bluesky.getPosts <br /> bsky.client.Bluesky.fetchPosts <br /> bsky.client.Bluesky.getPostItems
app.bsky.feed.getRepostedBybsky.client.Bluesky.getRepostedBy <br /> bsky.client.Bluesky.fetchRepostedBy <br /> bsky.client.Bluesky.repostedByUsers
app.bsky.feed.getSuggestedFeedsUNSUPPORTED
app.bsky.feed.getTimelinebsky.client.Bluesky.getTimeline <br /> bsky.client.Bluesky.fetchTimeline <br /> bsky.client.Bluesky.timeline
app.bsky.feed.searchPostsbsky.client.Bluesky.searchPosts <br /> bsky.client.Bluesky.fetchSearchPosts <br /> bsky.client.Bluesky.searchPostItems
app.bsky.graph.getBlocksUNSUPPORTED
app.bsky.graph.getFollowersbsky.client.Bluesky.getFollowers <br /> bsky.client.Bluesky.fetchFollowers <br /> bsky.client.Bluesky.followers
app.bsky.graph.getFollowsbsky.client.Bluesky.getFollows <br /> bsky.client.Bluesky.fetchFollows <br /> bsky.client.Bluesky.follows
app.bsky.graph.getListBlocksUNSUPPORTED
app.bsky.graph.getListMutesUNSUPPORTED
app.bsky.graph.getListUNSUPPORTED
app.bsky.graph.getListsUNSUPPORTED
app.bsky.graph.getMutesUNSUPPORTED
app.bsky.graph.getSuggestedFollowsByActorUNSUPPORTED
app.bsky.graph.muteActorListUNSUPPORTED
app.bsky.graph.muteActorUNSUPPORTED
app.bsky.graph.unmuteActorListUNSUPPORTED
app.bsky.graph.unmuteActorUNSUPPORTED
app.bsky.labeler.getServicesUNSUPPORTED
app.bsky.notification.getUnreadCountUNSUPPORTED
app.bsky.notification.listNotificationsUNSUPPORTED
app.bsky.notification.registerPushUNSUPPORTED
app.bsky.notification.updateSeenUNSUPPORTED
com.atproto.admin.deleteAccountUNSUPPORTED
com.atproto.admin.disableAccountInvitesUNSUPPORTED
com.atproto.admin.disableInviteCodesUNSUPPORTED
com.atproto.admin.enableAccountInvitesUNSUPPORTED
com.atproto.admin.getAccountInfoUNSUPPORTED
com.atproto.admin.getInviteCodesUNSUPPORTED
com.atproto.admin.getSubjectStatusUNSUPPORTED
com.atproto.admin.updateAccountEmailUNSUPPORTED
com.atproto.admin.updateAccountHandleUNSUPPORTED
com.atproto.admin.updateAccountPasswordUNSUPPORTED
com.atproto.admin.updateSubjectStatusUNSUPPORTED
com.atproto.identity.getRecommendedDidCredentialsUNSUPPORTED
com.atproto.identity.requestPlcOperationSignatureUNSUPPORTED
com.atproto.identity.resolveHandlebsky.client.Bluesky.resolveHandle
com.atproto.identity.signPlcOperationUNSUPPORTED
com.atproto.identity.submitPlcOperationUNSUPPORTED
com.atproto.identity.updateHandleUNSUPPORTED
com.atproto.moderation.createReportUNSUPPORTED
com.atproto.repo.applyWritesUNSUPPORTED
com.atproto.repo.createRecordbsky.client.Bluesky.createRecord <br /> bsky.client.Bluesky.sendPost <br /> bsky.client.Bluesky.sendReplyPost <br /> bsky.client.Bluesky.sendQuotePost <br /> bsky.client.Bluesky.markLike <br /> bsky.client.Bluesky.repost <br /> bsky.client.Bluesky.follow
com.atproto.repo.deleteRecordbsky.client.Bluesky.deletePost <br /> bsky.client.Bluesky.deleteLike <br /> bsky.client.Bluesky.deleteRepost <br /> bsky.client.Bluesky.unfollow
com.atproto.repo.getRecordbsky.client.Bluesky.getRecord
com.atproto.repo.importRepoUNSUPPORTED
com.atproto.repo.listMissingBlobsUNSUPPORTED
com.atproto.repo.listRecordsbsky.client.Bluesky.listRecords <br /> bsky.client.Bluesky.fetchRecords <br /> bsky.client.Bluesky.listRecordItems
com.atproto.repo.putRecordUNSUPPORTED
com.atproto.repo.uploadBlobbsky.client.Bluesky.uploadBlob <br /> bsky.client.Bluesky.sendPost
com.atproto.server.activateAccountUNSUPPORTED
com.atproto.server.checkAccountStatusUNSUPPORTED
com.atproto.server.confirmEmailUNSUPPORTED
com.atproto.server.createAccountUNSUPPORTED
com.atproto.server.createAppPasswordUNSUPPORTED
com.atproto.server.createInviteCodeUNSUPPORTED
com.atproto.server.createInviteCodesUNSUPPORTED
com.atproto.server.createSessionbsky.auth.AtprotoAuth.createSeession <br /> bsky.client.Bluesky.login
com.atproto.server.deactivateAccountUNSUPPORTED
com.atproto.server.deleteAccountUNSUPPORTED
com.atproto.server.deleteSessionbsky.auth.AtprotoAuth.deleteSession <br /> bsky.client.Bluesky.logout
com.atproto.server.describeServerUNSUPPORTED
com.atproto.server.getAccountInviteCodesUNSUPPORTED
com.atproto.server.getServiceAuthUNSUPPORTED
com.atproto.server.getSessionbsky.auth.AtprotoAuth.updateSession
com.atproto.server.listAppPasswordsUNSUPPORTED
com.atproto.server.refreshSessionbsky.auth.AtprotoAuth.refreshSession <br /> bsky.auth.AtprotoAuth.updateSession
com.atproto.server.requestAccountDeleteUNSUPPORTED
com.atproto.server.requestEmailConfirmationUNSUPPORTED
com.atproto.server.requestEmailUpdateUNSUPPORTED
com.atproto.server.requestPasswordResetUNSUPPORTED
com.atproto.server.reserveSigningKeyUNSUPPORTED
com.atproto.server.revokeAppPasswordUNSUPPORTED
com.atproto.server.updateEmailUNSUPPORTED
com.atproto.sync.getBlobUNSUPPORTED
com.atproto.sync.getBlocksUNSUPPORTED
com.atproto.sync.getLatestCommitUNSUPPORTED
com.atproto.sync.getRecordUNSUPPORTED
com.atproto.sync.getRepoUNSUPPORTED
com.atproto.sync.listBlobsUNSUPPORTED
com.atproto.sync.listReposUNSUPPORTED
tools.ozone.communication.createTemplateUNSUPPORTED
tools.ozone.communication.deleteTemplateUNSUPPORTED
tools.ozone.communication.listTemplatesUNSUPPORTED
tools.ozone.communication.updateTemplateUNSUPPORTED
tools.ozone.moderation.emitEventUNSUPPORTED
tools.ozone.moderation.getEventUNSUPPORTED
tools.ozone.moderation.getRecordUNSUPPORTED
tools.ozone.moderation.getRepoUNSUPPORTED
tools.ozone.moderation.queryEventsUNSUPPORTED
tools.ozone.moderation.queryStatusesUNSUPPORTED
tools.ozone.moderation.searchReposUNSUPPORTED

LICENSE

Boost Software License - Version 1.0

Authors:
  • SHOO
Dependencies:
voile
Versions:
0.0.1 2024-Nov-03
~main 2024-Dec-04
Show all 2 versions
Download Stats:
  • 0 downloads today

  • 1 downloads this week

  • 1 downloads this month

  • 1 downloads total

Score:
0.6
Short URL:
bsky.dub.pm