An Interest In:
Web News this Week
- April 2, 2024
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
- March 27, 2024
ReductStore Client SDK for JavaScript v1.2.0: New Features and Example Use
Hello, everyone!
ReductStore has released v1.2.0 of its
JavaScript SDK. This update includes support
for ReductStore API version 1.2 with the
new Client.me
method, which allows you to retrieve information about your current API token and its permissions.
The Client.me
method is a useful addition to the ReductStore JavaScript SDK, and can help you manage and monitor your
access to the platform. Here is an example of how you might use it in your application:
const {Client} = require("reduct-js");const client = new Client("http://127.0.0.1:8383", {apiToken: "my-token"});const tokenInfo = await client.me();console.log(tokenInfo.name);console.log(tokenInfo.permissions.fullAccess);
In addition to the new Client.me
method, this release of the ReductStore JavaScript SDK also includes updates to the
documentation to reflect the recent rebranding of the platform. We hope these updates will enhance your experience with
ReductStore.
if you have any questions or feedback, don't hesitate to reach out in Discord
or by opening a discussion on GitHub.
Original Link: https://dev.to/atimin/reductstore-client-sdk-for-javascript-v120-new-features-and-example-use-1pj0
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To