
Security News
Node.js TSC Votes to Stop Distributing Corepack
Corepack will be phased out from future Node.js releases following a TSC vote.
@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 7,979 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.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.
Research
Security News
Research uncovers Black Basta's plans to exploit package registries for ransomware delivery alongside evidence of similar attacks already targeting open source ecosystems.
Security News
Oxlint's beta release introduces 500+ built-in linting rules while delivering twice the speed of previous versions, with future support planned for custom plugins and improved IDE integration.