Socket
Book a DemoInstallSign in
Socket

@tng/soa-node-event

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tng/soa-node-event

SOA-Event for Node ================

1.2.0
latest
npmnpm
Version published
Weekly downloads
1
Maintainers
3
Weekly downloads
 
Created
Source

SOA-Event for Node

安装

yarn add @tng/soa-node-event

request 模块

  • https://github.com/teambition/tws-auth
  • https://github.com/teambition/node-teambition

使用

const SOAEvent = require('@tng/soa-node-event')
const TWSAuth = require('tws-auth')
const Teambition = require('teambition')

// use tws-auth
let twsAuth = new TWSAuth({ ... })
let soaevent = new SOAEvent({ twsAuth: twsAuth })

// use teambition
let teambition = new Teambition({ ... })
let soaevent = new SOAEvent({ teambition: teambition })

// 创建日程
let event = yield soaevent.events().create({
  title: 'new event',
  startDate: '2018-01-01',
  endDate: '2018-01-02',
  _creatorId: 'creator id'
})


// 获取日程信息
let eventInfo = yield soaevent.events(event._id).info()

接口

  • events()
    • .create(data): 创建日程
    • .info(): 获取日程详情
    • .remove(): 删除日程
    • .update(): 更新日程
    • .members().update(): 更新日程成员
    • .search(): 搜索日程
    • .activities().list(): 获取日程动态列表
    • .activities().create(): 新建日程动态

参数了解

FAQs

Package last updated on 05 May 2018

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.