
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
@uphold/uphold-sdk-javascript
Advanced tools
This SDK is built on top of the Uphold API and it's designed to help developers integrate Uphold services into their applications, by making it easier for them to interact with the API in a clean and controlled manner.
It provides developers the facilities to handle authentication, requests, pagination and error handling.
Please consult the documentation website for a more detailed specification of the SDK and its modules:
This SDK can be used on both browser and Node.js environments.
There are no major dependencies other than the fact that it uses the Fetch API to perform network requests, which some browsers do not yet support.
However, you can easily cover your bases by adding a polyfill. If this is a solution you are not comfortable with then please consult the Client documentation and follow the instructions on how to override it.
In this section we feature a simple usage example:
import SDK from '@uphold/uphold-sdk-javascript';
const sdk = new SDK({
clientId: 'foo',
clientSecret: 'bar'
});
sdk.authorize('code')
.then(() => sdk.getMe())
.then(user => {
console.log(user);
});
Below you can consult the list of available options you can pass to the SDK constructor:
Key | Required | Default | Description |
---|---|---|---|
accessTokenKey | No | uphold.access_token | Key used to store the access_token |
baseUrl | No | https://api.uphold.com | Uphold API's url |
clientId | Yes | Your client id | |
clientSecret | Yes | Your client secret | |
itemsPerPage | No | 10 | Pagination size |
refreshTokenKey | No | uphold.refresh_token | Key used to store the refresh_token |
version | No | v0 | Uphold API's version |
To install the SDK just type into your terminal:
$ npm install @uphold/uphold-sdk-javascript
Or, if you're using yarn
:
$ yarn add @uphold/uphold-sdk-javascript
Contributions are welcome, consult the guidelines for contributing for instructions.
FAQs
Uphold SDK for JavasScript
The npm package @uphold/uphold-sdk-javascript receives a total of 42 weekly downloads. As such, @uphold/uphold-sdk-javascript popularity was classified as not popular.
We found that @uphold/uphold-sdk-javascript demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.