Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

weclapp-connect

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

weclapp-connect

weclapp connect plugin

latest
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

weclapp connect

This module can use for call any weclapp API or simple validating an user from external software.
How to use

  • Create a file called handshake-config.json in root directory
  • fill all tenant details. like this
    	{
    		"username": "*",
    		"password": "123456",
    		"tenant": "gupta",
    		"apiKey": "KjpkNTYzMTEzYi01NjU2LTRkNDMtOGU2Ni0wNmJiMTY5Mjc3NzU=",
    		"allowed": ["get", "post", "delete"],
    		"debug":"true"
    	}
    	
  • add this line where you want to access this - import $con from '~/lib/connect.js'
  • add this line of code inside methods or created (E.g in nuxt)
    		async testCall(){		
    			var config = {
    				'method': 'get',
    				'url': '/done.json',
    				'params': {}
    			}
    			var resp  = await $con.call(config)
    			console.log('Final Response = ', resp)
    		}
    	

Keywords

weclapp-connect

FAQs

Package last updated on 04 Apr 2019

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