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

@alipay/faas-web-sdk

Package Overview
Dependencies
Maintainers
0
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alipay/faas-web-sdk

云函数服务 web SDK

  • 1.1.25
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

@alipay/faas-web-sdk

NPM version NPM downloads

Install

$ npm install @alipay/faas-web-sdk

Usage

const cloud = require('@alipay/faas-web-sdk');

const sdk = new cloud.Cloud({
  // 网关地址,可不填,默认通过 envId 拼接为 https://{envId}.api-hz.cloudbasefunction.cn
  endpoint: 'https://{envId}.api-hz.cloudbasefunction.cn', // 控制台,环境管理 - 环境概览中,网关地址
  // AK
  secretId: '', // 控制台,环境管理 - 环境概览中,AK
  // SK
  secretKey: '', // 控制台,环境管理 - 环境概览中,SK
  // appId
  appId: '',
  // 目标环境 id
  envId: '',
});
const res = await sdk.callFunction({
  name: 'echo',
  data: {
    a: 1,
    b: 2,
  },
});

LICENSE

MIT

FAQs

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

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