New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

dz-api

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

dz-api

A library for interacting with my API

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

Requirements

To use this project, you'll need the following:

  • Node.js: You should have Node.js version 12 or higher installed. You can download it from the official Node.js website.

    node -v
    
  • NPM (Node Package Manager): NPM is included with Node.js. Ensure you have NPM installed by running the following command in your terminal:

    npm -v
    
  • API (Token, Secret): You can get Token And Secret for free

  • Install Package: npm (Recomended) OR yarn

    # NPM
    npm install dz-api
    # YARN
    yarn add dz-api
    

Quick start

//// FOR CHECK IF TOKEN AND SECRET ITS WORKING
const Api = require('dz-api');
   
const api = new Api();
   
api.apiUrl = 'https://khalildjaariri.ftp.sh/api'
    
api.token = '2e01314d5189ee15bb72ab0267e77e4357e86aa831a3b3b5c96133575a7ccd1b'
    
api.secret = 'dfb0c611bf7cc21e2deaa9013db7c60db8618e7b51152742bb4f45e71456204f'
    
api.checkToken()
    .then(data => {
    if (data.error) {
        console.log("Error Token Or Secret");
    } else {
        console.log("Token is valid");
    }
    })
    .catch(error => {
        console.error("An error occurred:", error);
    });

Keywords

api

FAQs

Package last updated on 02 Sep 2023

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