Skip to content

briandowns/libbluesky

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libbluesky

Build and Deploy

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.

Usage

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;
}

Build shared object

To build the shared object:

make install

Example

Build the example:

make example

API Coverage

  • API response data is returned in a string containing JSON.
  • The caller is responsible for how to handle the data.

User

  • 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)

Posts

  • Create a post
  • Retrieve the authenticated user's timeline
  • Retrieve post for a given account

Likes

  • Retrieve likes for the authenticated user
  • Retrieve likes for a given at-uri

Requirements / Dependencies

  • curl
  • jansson

Contributing

Please feel free to open a PR!

Contact

Brian Downs @bdowns328

License

BSD 2 Clause License.

About

C/C++ library for accessing the BlueSky API.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published