Table of Contents
With all the uncertainty surrounding the future of X (née Twitter), I decided to take a look at Bluesky which somewhat ironically has its roots in Twitter where it was started as an internal project. Bluesky is still in beta and is invite-only. I worry about Bluesky's long-term given that ultimately it too has to make money, something that Twitter has singularly failed to do. None of this, of course, affects the topic today which is posting to Bluesky via the API.
- PHP
- [BlueskyApi by Clark Rasmussen] (https://github.com/cjrasmussen/BlueskyApi)
Running the script is very straightforward:
- download the code/clone the repository
- install [composer] (https://getcomposer.org/)
- add the BlueskyAPI
composer.phar require cjrasmussen/bluesky-api
Now you can inspect and update index.php to get some examples.
You can read more about how this all works in this blog post.
Requirements are very simple, it requires the following:
- PHP (I tested on v8.1.13)
- Clark Rasmussen's [BlueskyApi] (https://github.com/cjrasmussen/BlueskyApi) (required v2 or above)
- a Bluesky account and an Application Password (see this blog post for details of how to do that).
- Clone the repo:
git clone https://github.com/williamsdb/php2Bluesky.git
For more information, please refer to the this blog post
- none
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the GNU General Public License v3.0. See LICENSE
for more information.
Your Name - @spokenlikeageek - Contact
Project Link: [https://spokenlikeageek.com] (https://www.spokenlikeageek.com/2023/11/06/posting-to-bluesky-via-the-api-from-php-part-one/)
- [BlueskyApi] (https://github.com/cjrasmussen/BlueskyApi)