Socket
Socket
Sign inDemoInstall

dblsqd-api

Package Overview
Dependencies
1
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dblsqd-api

The API client library for operations on DBLSQD accounts


Version published
Weekly downloads
24
increased by200%
Maintainers
1
Install size
345 kB
Created
Weekly downloads
 

Readme

Source

dblsqd-api: DBLSQD API Client

This module provides a Promise-based API for accessing the functionality of DBLSQD.

Installing

Install dblsqd-api by adding it to your package.json file or via the command-line: npm i --save-dev dblsqd-api.

Usage

Here is a basic example of how to create a new App, with a Channel with one Release and upload an Artifact:

const dblsqdApi = require("dblsqd-api")

async function main() {
    //Retrieve a new API key. You could store this key and re-use it later.
    let apiKey = await api.getApiKey("user@example.org", "secure-password-123")

    //dblsqdApi.init makes the apiKey available for later calls
    dblsqdApi.init(apiKey)

    //All methods for interacting with the DBLSQD server are implemented as
    //Promises. You can also use .then() chaining instead of async/await.
    const store = await dblsqdApi.createStoreS3("my-store", {
        access_key_id: "***",
        secret_key: "***",
        bucket: "octaplay-bucket"
    })
    const app      = await dblsqdApi.createApp("octaplay")
    const channel  = await dblsqdApi.createChannel(app.uuid, "stable")
    const release  = await dblsqdApi.createRelease(channel.uuid, "1.0.0", "Here goes the changelog")
    const artifact = await dblsqdApi.createArtifact(release.uuid)

    console.log("Artifact uploaded", artifact)
}

main()

FAQs

Last updated on 01 Mar 2019

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc