Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

qateway

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qateway

Qateway By Qrvey

  • 1.0.4
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Qateway

By Qrvey
install size

Qateway is a lightweight and reliable companion for RESTful requests in Node.js applications. It works using native FETCH library (Node.js 18+), avoiding the need for external dependencies.

Installation

You can install the qateway package via npm. Run the following command in your terminal:

npm install qateway

API Documentation

Available Methods

  • get(endpoint: string, options: IHttpActionOptions): Promise<any>: Performs an HTTP GET request.
  • post(endpoint: string, body: unknown, options: IHttpActionOptions): Promise<any>: Performs an HTTP POST request.
  • put(endpoint: string, body: unknown, options: IHttpActionOptions): Promise<any>: Performs an HTTP PUT request.
  • patch(endpoint: string, body: unknown, options: IHttpActionOptions): Promise<any>: Performs an HTTP PATCH request.
  • delete(endpoint: string, body: unknown, options: IHttpActionOptions): Promise<any>: Performs an HTTP DELETE request.

Example Usage

const { AbstractGatewayClientService } = require('qateway');
class DataViewGatewayClient extends AbstractGatewayClientService {
    static groups({ userId, appId, qrveyId }, { body, queryParameters, headers }) {
        const endpoint = `/devapi/v5/user/${userId}/app/${appId}/qrvey/${qrveyId}/analytics/results/groups`;
        return this.post(endpoint, body, { headers, queryParameters });
    }
    static rows({ userId, appId, qrveyId }, { body, queryParameters, headers }) {
        const endpoint = `/devapi/v5/user/${userId}/app/${appId}/qrvey/${qrveyId}/analytics/results/rows`;
        return this.post(endpoint, body, { headers, queryParameters });
    }
    static model({ userId, appId, qrveyId }, { queryParameters, headers }) {
        const endpoint = `/devapi/v4/user/${userId}/app/${appId}/qrvey/${qrveyId}/analytiq/model`;
        return this.get(endpoint, { headers, queryParameters });
    }
}
module.exports = DataViewGatewayClient;

Keywords

FAQs

Package last updated on 25 Feb 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc