Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
@openscreen/sdk
Advanced tools
Generate Unique, Dynamic and trackable QR Codes at scale with Openscreen SDK
Weekly downloads
Readme
Openscreen is a software developer platform that allows users to easily generate unique and trackable QR Codes at scale using our Node SDK.
Additional information on using the Node SDK can be found in our developer documentation.
If you don't already have an Openscreen account, you can sign up for a free account here.
npm install @openscreen/sdk
# or using Yarn
yarn add @openscreen/sdk
const {Openscreen} = require('@openscreen/sdk')
import {Openscreen} from '@openscreen/sdk'
Openscreen authenticates your API requests using your account's API key and API secret key. You will also need the ID of the project you wish to work with. Your API key, secret key and project ID can all be found in your by logging into your Openscreen dashboard. The following examples demonstrates how to use these values in the SDK to generate your first QR code.
const {Openscreen} = require('@openscreen/sdk')
const PROJECT_ID = '**PROJECT_ID**'
const os = new Openscreen().config({
key: '**KEY**',
secret: '**SECRET**',
})
async function myFirstQRCode(event) {
const res = await os
.project(PROJECT_ID)
.assets()
.create({
name: 'Openscreen website',
description: 'Dynamic QR code to https://openscreen.com',
qrCodes: [
{
intent: 'https://openscreen.com',
intentType: 'DYNAMIC_REDIRECT',
},
],
})
const {qrCodeId} = res.asset.qrCodes[0]
const qrCode = await os.qrCode(qrCodeId).get({format: 'PNG', dataUrl: true})
await os.saveQrImageDataToFile(qrCode, 'my-first-qr.png')
}
myFirstQRCode().catch(console.error)
FAQs
Generate Unique, Dynamic and trackable QR Codes at scale with Openscreen SDK
The npm package @openscreen/sdk receives a total of 3 weekly downloads. As such, @openscreen/sdk popularity was classified as not popular.
We found that @openscreen/sdk demonstrated a healthy version release cadence and project activity because the last version was released less than 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
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.