New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ucoz-uapi

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ucoz-uapi

Node JS модуль для uAPI

  • 1.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

ucoz-uapi

Module for use with uCoz uAPI for Node.js.

  1. Go to uCoz uAPI
  2. Get the following keys: Consumer key, Consumer secret, OAuth token, OAuth token secret.
  3. Make sure the checkbox "Enable uAPI module" in the module settings (in the Control Panel of the site).
  4. Use:
var UAPI = require('ucoz-uapi');
var uAPI = new UAPI({
    consumerKey       : 'dfg98dfg8df8g9d98gd98g8dfg',
    consumerSecret    : '.dA7xzR7fDlOrltTc7tZHVI95oMsEa',
    oauthToken        : 'BRKkNkf3ZbijzdRC6F9bPhCeYVW7FTtqNRbwsDbq',
    oauthTokenSecret  : 'qSSUWTG7FbryN3ZXpSf0fbZeEVdDkLXYrX2jGrsl',
    url               : 'yousiteurl'
});

uAPI.blog().get(
    function(err, data) {
        console.log(err, data);
    }
);

uAPI.blog().post(
    {
        title       : 'Какой-то заголовок',
        description : 'Какое-то описание',
        message     : 'Какое-то сообщение'
    },
    function(err, data) {
        console.log(err, data);
    }
);

uAPI.blog().put(
    {
        id          : '83',
        title       : 'Какой-то заголовок2',
        description : 'Какое-то описание2',
        message     : 'Какое-то сообщение2'
    },
    function(err, data) {
        console.log(err, data);
    }
);

uAPI.blog().delete(
    {
        id: '83'
    },
    function(err, data) {
        console.log(err, data);
    }
);

The module uses the realization of certain functions php:

  • urlencode
  • base64_encode
  • mt_rand
  • http_build_query

Keywords

FAQs

Package last updated on 08 Nov 2017

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