Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@heapstream/heapstream
Advanced tools
Explore the API documentation for [Heapstream.com](//heapstream.com)! ## Authentication API authentication is done using Basic Authentication [wikipedia](https://en.wikipedia.org/wiki/Basic_access_authentication) [RFC7617](https://datatracker.ietf.org/
Welcome to the Heapstream SDK documentation. This guide will help you get started with integrating and using the Heapstream SDK in your project.
1.0
1.0.0
Explore the API documentation for Heapstream.com! ## Authentication API authentication is done using Basic Authentication wikipedia RFC7617. For username
you should use the id
of the ApiKey. For password
you should use the password
of the ApiKey.
This SDK is compatible with the following versions: TypeScript >= 4.8.4
To get started with the SDK, we recommend installing using npm
:
npm install @heapstream/heapstream
The Heapstream API uses Basic Authentication.
You need to provide your username and password when initializing the SDK.
When you initialize the SDK, you can set the username and password as follows:
const sdk = new Heapstream({ username: 'YOUR_USERNAME', password: 'YOUR_PASSWORD' });
If you need to set or update the username and password after initializing the SDK, you can use:
const sdk = new Heapstream();
sdk.username = 'YOUR_USERNAME';
sdk.password = 'YOUR_PASSWORD';
You can set a custom timeout for the SDK's HTTP requests as follows:
const heapstream = new Heapstream({ timeout: 10000 });
Below is a comprehensive example demonstrating how to authenticate and call a simple endpoint:
import { Heapstream } from '@heapstream/heapstream';
(async () => {
const heapstream = new Heapstream({
username: 'YOUR_USERNAME',
password: 'YOUR_PASSWORD',
});
const { data } = await heapstream.project.listProjects();
console.log(data);
})();
The SDK provides various services to interact with the API.
Name |
---|
ProjectService |
DirectUploadService |
PlayerService |
StatsService |
VideoService |
AudioTrackService |
PosterService |
TextTrackService |
WatermarkService |
WebhookService |
The SDK includes several models that represent the data structures used in API requests and responses. These models help in organizing and managing the data efficiently.
This SDK is licensed under the MIT License.
See the LICENSE file for more details.
FAQs
Explore the API documentation for [Heapstream.com](//heapstream.com)! ## Authentication API authentication is done using Basic Authentication [wikipedia](https://en.wikipedia.org/wiki/Basic_access_authentication) [RFC7617](https://datatracker.ietf.org/
The npm package @heapstream/heapstream receives a total of 0 weekly downloads. As such, @heapstream/heapstream popularity was classified as not popular.
We found that @heapstream/heapstream demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.