- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for RtmStartResponse (0.08 sec)
-
samples/slack/src/main/java/okhttp3/slack/RtmStartResponse.java
* limitations under the License. */ package okhttp3.slack; import java.util.List; import okhttp3.HttpUrl; /** See https://api.slack.com/methods/rtm.start. */ public final class RtmStartResponse { HttpUrl url; Object self; Object team; List<Object> users; List<Object> channels; List<Object> groups; List<Object> mpims; List<Object> ims; List<Object> bots;
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Oct 23 15:24:22 UTC 2016 - 943 bytes - Viewed (0) -
samples/slack/src/main/java/okhttp3/slack/RtmSession.java
this.slackApi = slackApi; } public void open(String accessToken) throws IOException { if (webSocket != null) throw new IllegalStateException(); RtmStartResponse rtmStartResponse = slackApi.rtmStart(accessToken); webSocket = slackApi.rtm(rtmStartResponse.url, this); } // TODO(jwilson): can I read the response body? Do I have to? // the body from slack is a 0-byte-buffer
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Nov 19 20:16:58 UTC 2016 - 2.4K bytes - Viewed (0) -
samples/slack/src/main/java/okhttp3/slack/SlackApi.java
.build(); Call call = httpClient.newCall(request); try (Response response = call.execute()) { JsonAdapter<RtmStartResponse> jsonAdapter = moshi.adapter(RtmStartResponse.class); return jsonAdapter.fromJson(response.body().source()); } } /** See https://api.slack.com/rtm. */ public WebSocket rtm(HttpUrl url, WebSocketListener listener) { return httpClient.newWebSocket(new Request.Builder()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Fri Jul 06 19:30:55 UTC 2018 - 4.4K bytes - Viewed (0)