
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Client library simplifying use of the SYNQ.fm API from a Node service
The library provides functions mirroring the endpoints in the api, and some simplifying functions.
It makes use of request-promise so all functions returns promises.
Install:
yarn add synq or npm install --save synq
Require or import:
import Synq from 'synq' or let Synq = require('synq').default;
import Synq from 'synq'
// Init the library by setting the url and api key
const api = new Synq(process.env.SYNQ_API_KEY, 'https://api.synq.fm/v1/');
// Create a new video object
api.video.create([userdata: Object])
.then((videoObject) => {
console.log('Video object created successfully', videoObject)
})
.catch((error) => {
console.log('Error: ', error.statusCode);
console.log(error.message);
});
// Get a video object
api.video.details(videoId: string)
.then(etc... )
// Query video objects by equality to a single key value pair in the metadata
api.video.querySimple(key: string, value: string)
.then(etc...)
// Query videoobjects by metadata fields by providing filtering code
// ex: 'if (video.views > 3000) { return video }' returns all videos where views > 300
api.video.query(filter: string)
.then(etc...)
// Update the metadata of a video object by providing code that handles the update
// eks: 'video.userdata.baz = "bar"'
api.video.update(source: string, videoId: string)
.then(etc...)
// Get upload parameters to Amazon S3.
api.video.upload(videoId: string)
.then(etc...)
// Get embeddable uploader
api.video.uploader(videoId: string)
.then(etc...)
// Get streaming details
api.video.stream(videoId: string)
.then(etc... )
If an error happens the promise will reject with an error object.
The library forwards the error from the request library, read their docs for more details
Integration tests are included for all api methods.
You need to set enviroment variable SYNQ_API_KEY=yourAPIKey to run them.
Then do: yarn test
FAQs
SYNQ.fm API client
We found that synq demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.