You Asked We Listened
2bttns is now compatible with any language.
Last updated
Was this helpful?
2bttns is now compatible with any language.
Last updated
Was this helpful?
Interfacing with the API hosted on your Console has been simplified. We are excited to announce a significant update to the 2bttns platform, which will streamline the way users interface with our API. Effective immediately, the use of our Node.js server-side SDK, previously identified as @2bttns/sdk
, is no longer a requirement for API interaction. Whether your project is built with Flask or Next.js, 2bttns is seamlessly compatible.
🔓No More SDK Dependency: Users can now interact with the API directly without the need for the @2bttns/sdk
package or a backend Node server.
🌎Universal Compatibility: Whether you are working on projects built with Flask, Next.js, or any other framework, the 2bttns API is now seamlessly compatible.
🛹Direct Fetch Requests: API interaction is now simplified through direct fetch requests from the client side, using a newly introduced authentication method.
To interact with the 2bttns API, you must first generate an authentication Bearer token. This token ensures secure communication between your application and our API services.
Log in to Your Console: , access your 2bttns console dashboard.
Navigate to Settings: Find the Apps section in the settings menu.
Generate Token: Use the app_id and secret value found in your Apps section as parameters to generate a new Bearer token. Ensure you save this token securely.
Once you have your Bearer token, you can use it to make authorized API requests. Attach the token to the headers of your fetch requests like so:
Replace YOUR_TOKEN_HERE
with your actual Bearer token and localhost:3262/api/resource
with the desired API endpoint.
Thank you to everyone who has used 2bttns beta thus far. We're excited about opening up the flood gates to more compatible frameworks. As always, visit our , join our , or anything that's easy for you to talk to us.
Visit our latest API Reference for .
Returns a JSON Web Token (JWT) you can use to authenticate API calls to 2bttns.
You can get the app_id
and secret
from your 2bttns admin console, under Settings/Apps.