libbluesky is a C/C++ client library for the BlueSky API. It requires a Bluesky account to connect through and an application password to authenticate with.
Note: This library is very much in alpha and will experience change over the coming months.
To initialize the library, the user's github token is required.
char *bksy_app_password = getenv("BSKY_APP_PASSWORD");
int ret = bs_client_init("bdowns328.bsky.social", bksy_app_password, NULL);
if (ret > 0) {
fprintf(stderr, "failed to login to bluesky\n");
return 1;
}
To build the shared object:
make install
Build the example:
make example
- API response data is returned in a string containing JSON.
- The caller is responsible for how to handle the data.
- Retrieve a user's profile information
- Retrieve the authenticated preferences
- Retrieve follows for a given handle
- Retrieve followers for a given handle
- Resolve handle into DID (domain identifier)
- Create a post
- Retrieve the authenticated user's timeline
- Retrieve post for a given account
- Retrieve likes for the authenticated user
- Retrieve likes for a given at-uri
- curl
- jansson
Please feel free to open a PR!
Brian Downs @bdowns328
BSD 2 Clause License.