You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

parasut-api-v4

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parasut-api-v4

### Install

0.1.1
latest
Source
npmnpm
Version published
Weekly downloads
13
550%
Maintainers
1
Weekly downloads
 
Created
Source

Paraşüt-Api-V4

Install

npm i parasut-api-v4

Giriş

Bu npm modülün amacı https://apidocs.parasut.com/ da belirtilen api için bir sdk görevi görmektir. Resmi bir yayın değildir.

Özellikler

  • Obje şeması üzerinden istekleri gönderebilme ör: parasutApiV4.accounts.index({ queryParams, data, pagination })
  • Request ve Response tiplerinin tanımlanması (kısmen mevcut)
  • Authorization yönetimi otomatik yapılıyor. Token süresi dolduğunda refreshToken isteği yapılmakta ve istek kaldığı yerden devam etmektedir.

Kullanım örnekleri

import ParasutApiV4 from 'parasut-api-v4'

const run = async () => {
  const parasutApiV4 = new ParasutApiV4({
    firmaNo: '101010',
    email: 'örnek_email@gmail.com',
    password: '11111111111',
    clientId: '11111111111',
    clientSecret: '11111111111',
  })

  const meResult = await parasutApiV4.me()
  console.log(meResult.data)
}

run()

QueryParams, Pagination tanımlamaları

import ParasutApiV4 from 'parasut-api-v4'

const run = async () => {
  const parasutApiV4 = new ParasutApiV4({
    firmaNo: '101010',
    email: 'örnek_email@gmail.com',
    password: '11111111111',
    clientId: '11111111111',
    clientSecret: '11111111111',
  })

  const queryParams = { // obje şeklinde tanımlanır
    sort: '-balance',
  }

  const pagination = { // obje şeklinde tanımlanır
    limit: 1,
    size: 15,
  }

  const accountIndexResult = await parasutApiV4.accounts.index({ queryParams, pagination })
  console.log(accountIndexResult.data)
}

run()

Hatalar ve İstekler

Kullanım sırasında yaşadığınız sorunları veya isteklerinizi https://github.com/Sergeant61/parasut-api-v4/issues iş kaydı açabilir veya https://recepozen.com 'dan bildirebilirsiniz.

Destek olmak isteyenler

Mevcut kod yapısına uygun her türlü pr tarafımca kabul edilecektir.

FAQs

Package last updated on 02 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