This commit is contained in:
philipyun103 2016-08-07 01:11:04 -07:00
parent 9f71ca3a36
commit 0fe3cb6bac

View file

@ -90,13 +90,13 @@ Plugins can also run methods on a schedule. This allows a plugin to poll for upd
The data within a plugin persists for the life of the rtmbot process. If you need persistent data, you should use something like sqlite or the python pickle libraries.
####Direct API Calls
You can directly call the Slack web API in your plugins by allowing the following import:
You can directly call the Slack web API in your plugins by including the following import:
from client import client
from client import slack_client
You can also rename the client on import so it can be easily referenced like shown below:
from client import client as sc
from client import slack_client as sc
Direct API calls can be called in your plugins in the following form: