Dynamic module simple-cw-node

Index

Functions

Functions

ChatWork(): ChatWork

Returns

ChatWork

ChatWork: ChatWork

public Deferred: any

public apiVersion: string

public sdkVersion: string

public token: string

public when: any

public api(method: string, api: string): any

Parameters

  • method: string
  • api: string

Returns

any

public api(method: string, api: string, callback: (err: Error, res: "superagent".Response) => void)

Parameters

  • method: string
  • api: string
  • callback: (err: Error, res: "superagent".Response) => void

public api(method: string, api: string, args: any, callback: (err: Error, res: "superagent".Response) => void)

Parameters

  • method: string
  • api: string
  • args: any
  • callback: (err: Error, res: "superagent".Response) => void

public del(api: string): any

Parameters

  • api: string

Returns

any

public del(api: string, callback: (err: Error, res: "superagent".Response) => void)

Parameters

  • api: string
  • callback: (err: Error, res: "superagent".Response) => void

public del(api: string, args: any, callback: (err: Error, res: "superagent".Response) => void)

Parameters

  • api: string
  • args: any
  • callback: (err: Error, res: "superagent".Response) => void

public get(api: ""me"", callback: (err: Error, res: "superagent".Response) => void)

Parameters

  • api: ""me""
  • callback: (err: Error, res: "superagent".Response) => void

public get(api: ""my/status"", callback: (err: Error, res: "superagent".Response) => void)

Parameters

  • api: ""my/status""
  • callback: (err: Error, res: "superagent".Response) => void

public get(api: ""my/tasks"", callback: (err: Error, res: "superagent".Response) => void)

Parameters

  • api: ""my/tasks""
  • callback: (err: Error, res: "superagent".Response) => void

public get(api: ""contacts"", callback: (err: Error, res: "superagent".Response) => void)

Parameters

  • api: ""contacts""
  • callback: (err: Error, res: "superagent".Response) => void

public get(api: ""rooms"", callback: (err: Error, res: "superagent".Response) => void)

Parameters

  • api: ""rooms""
  • callback: (err: Error, res: "superagent".Response) => void

public get(api: string): any

Parameters

  • api: string

Returns

any

public get(api: string, callback: (err: Error, res: "superagent".Response) => void)

Parameters

  • api: string
  • callback: (err: Error, res: "superagent".Response) => void

public get(api: string, args: any, callback: (err: Error, res: "superagent".Response) => void)

Parameters

  • api: string
  • args: any
  • callback: (err: Error, res: "superagent".Response) => void

public init(options: ChatWorkInitOptions)

Parameters

public post(api: ""rooms"", args: any, callback: (err: Error, res: "superagent".Response) => void)

Parameters

  • api: ""rooms""
  • args: any
  • callback: (err: Error, res: "superagent".Response) => void

public post(api: string): any

Parameters

  • api: string

Returns

any

public post(api: string, callback: (err: Error, res: "superagent".Response) => void)

Parameters

  • api: string
  • callback: (err: Error, res: "superagent".Response) => void

public post(api: string, args: any, callback: (err: Error, res: "superagent".Response) => void)

Parameters

  • api: string
  • args: any
  • callback: (err: Error, res: "superagent".Response) => void

public put(api: string): any

Parameters

  • api: string

Returns

any

public put(api: string, callback: (err: Error, res: "superagent".Response) => void)

Parameters

  • api: string
  • callback: (err: Error, res: "superagent".Response) => void

public put(api: string, args: any, callback: (err: Error, res: "superagent".Response) => void)

Parameters

  • api: string
  • args: any
  • callback: (err: Error, res: "superagent".Response) => void

ChatWorkInitOptions: ChatWorkInitOptions

public token: string