clonn / slack-node-sdk

slack.com, slack, node sdk
MIT License
167 stars 32 forks source link

Client> has no method 'api' #25

Closed dcsan closed 9 years ago

dcsan commented 9 years ago

i'm getting an error with basic api call as below, any suggestions?


slack = new Slack(SLACK_TOKEN, autoReconnect, autoMark)

  args = {
    text: "hello slackapi 2"
    channel: "#general"
  }

  slack.api('chat.postMessage', args)

gives this error:

TypeError: Object # has no method 'api'

dcsan commented 9 years ago

perhaps I was confused with using the slack-node official client.