
Product
A New Design for GitHub PR Comments
We redesigned our GitHub PR comments to deliver clear, actionable security insights without adding noise to your workflow.
@dynamic-labs/sdk-api
Advanced tools
This library contains a generated TypeScript client using openapi. It can be used with any Javascript/Typescript project.
Documentation on the current set of REST APIs can be found at: https://docs.dynamic.xyz/api-reference/overview
verify
or signin
endpoints, and are specific to a user in the SDK's environment. These APIs are typically used on a client site or frontend to enhance their customers' experience.UsersApi
This section provides an example of how to use SDKApi
. This would be similar to using the other available generated APIs, like UsersApi
or ExportsApi
, etc.
Initialize a new instance of the SDKApi
class:
import { Configuration, SDKApi } from '@dynamic-labs/sdk-api';
const sdkApi = (jwt: string) => {
const settings = {
basePath: ApiEndpoint.getBaseUrl(),
headers: {
'Content-Type': 'application/json',
},
};
settings.headers.Authorization = `Bearer ${jwt}`;
return new SDKApi(new Configuration(settings));
};
Then you would be able to use it like this:
const response = await sdkApi(jwt).updateSelf({
environmentId,
userFields: fields, // { alias, firstName, lastName, username, ... }
});
// do something with the response
FAQs
API SDK for app.dynamic.xyz
The npm package @dynamic-labs/sdk-api receives a total of 8,266 weekly downloads. As such, @dynamic-labs/sdk-api popularity was classified as popular.
We found that @dynamic-labs/sdk-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
We redesigned our GitHub PR comments to deliver clear, actionable security insights without adding noise to your workflow.
Product
Our redesigned Repositories page adds alert severity, filtering, and tabs for faster triage and clearer insights across all your projects.
Security News
Slopsquatting is a new supply chain threat where AI-assisted code generators recommend hallucinated packages that attackers register and weaponize.