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

prostore.rest-client

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prostore.rest-client

ProStore REST API Client

  • 0.0.2
  • npm
  • Socket score

Version published
Maintainers
1
Created
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

Package last updated on 24 Apr 2015

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