public static IEnumerator GetUsersList(string token, Action <UnityWebRequest> onSuccess = null, Action <UnityWebRequest> onError = null) { yield return(SlackAPI.PostToSlack(SlackAPI.UsersListURL, SlackAPI.GenerateUserListForm(token), onSuccess, onError)); }
public static IEnumerator PostMessage(string token, string channel, string username, string text, Action <UnityWebRequest> onSuccess = null, Action <UnityWebRequest> onError = null) { yield return(SlackAPI.PostToSlack (SlackAPI.PostMessageURL, SlackAPI.GeneratePostMessageForm(token, channel, username, text), onSuccess, onError)); }