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

teambition-server-sdk

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

teambition-server-sdk

Javascript SDK for teambition server

  • 0.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

NPM version Build Status Downloads

Teambition Server SDK

Teambition 服务端 Node SDK,封装如下方法:

  • 数据处理: 常用的数据加工处理方法
  • 官方 API: 常用的 Teambition 主站官方 API 封装,使用者不应该关注具体 URL 的变动
  • 工具函数: 封装与 Teambition 强相关的业务需要使用到的工具函数

数据处理

JobSlice(分片执行)

// JS Demo
function request (sliceRaw) {
  // do anything
}
const raw = new Array(20)
const datafactory = new TeambitionSDK.DataFactory(raw)

datafactory.JobSlice(request)

官方 API

封装 Teambition API,请至 https://docs.teambition.com/ 查阅 API 目录

如果你是第三方开发者,需要自建应用,请前往 Teambition 开发者中心

// TS DEMO
import * as TeambitionSDK from 'teambition-server-sdk'

const teambitionSDK = new TeambitionSDK.Client.Task()
return teambitionSDK
  // optional 可选的,假如你是私有部署或其它,请填入正确的地址 
  .setUrl('add your custom url')
  // optional
  .setHeader({
    // optional
    cookie: 'your cookie'
    // optional
    Authorization: 'your access token',
  })
  .createOne(task)

FAQs

Package last updated on 09 Jan 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

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