đžSolarplex API
Solarplex uses the AT Protocol for messaging, and Solana for content, points and micropayments.
Solarplex Integration Using AT Protocol
Welcome to the Solarplex Developer Guide for integrating AT Protocol functionalities. This guide will help you implement login features and manage posts and likes via AT Protocol.
Note: the API endpoint is a dummy. Please ping us to get the live API endpoint.
Prerequisites
Before you start, ensure you have the @usedispatch/atproto-api
package installed in your development environment.
A) Logging In via Solarplex
To enable users to log in via Solarplex using AT Protocol, follow these steps:
Import the BskyAgent from @usedispatch/atproto-api:
Create a Bluesky Agent:
Set up the agent to communicate with the Solarplex service.
User Login:
Users can log in with their credentials. Here, use environment variables to securely manage user credentials.
Replace
SOLARPLEX_USERNAME
andSOLARPLEX_PASSWORD
with the actual environment variables.
B) Managing Posts and Likes
1. Creating a Post
To create a post on Solarplex:
2. Fetching Posts
To get posts from Solarplex:
You can customize the parameters and options based on your requirements.
3. Liking a Post
To like a post:
Replace postUri
and cid
with the URI of the post and the content identifier, respectively.
4. Viewing Likes
To view likes on a post:
Customize the parameters and options as needed.
5. Deleting a Post
To delete a post:
Replace postUri
with the URI of the post to be deleted.
For details of the above calls, please see the API docs below.
API Docs in detail
Community apps
Last updated