Beispiel #1
0
 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));
 }
Beispiel #2
0
 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));
 }