Socket
Socket
Sign inDemoInstall

prostore.rest-client

Package Overview
Dependencies
51
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    prostore.rest-client

ProStore REST API Client


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
3.77 MB
Created
Weekly downloads
 

Readme

Source

API Client

Библиотека для взаимодействия с REST API системы ПроСтор.

Использование

  1. Получите приватный токен пользователя (см. ProStore CLI)

  2. Создайте клиент:

    var Client = require('prostore.rest-client');
    
    var client = new Client({
      userId: '54b4c1d3bab9e22843c99ea4',
      url: 'https://example.store',
      privateToken: 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
    });
    
  3. Выполняйте запросы с помощью методов get, post, put или delete:

    client.get('echo', function(err, data) { });
    
    client.post('echo', {
      data: 'Hello!'
    }, function(err, data) { });
    

См. исходные коды для получения более подробной информации.

Keywords

FAQs

Last updated on 04 Jun 2015

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc