Created
June 29, 2020 18:39
-
-
Save jetaggart/8dfd9a57bb805747c20e7bf0b80087b9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // android/app/src/main/java/io/getstream/thestream/services/BackendService.kt:27 | |
| data class StreamCredentials(val token: String, val apiKey: String) | |
| fun getChatCredentials(): StreamCredentials { | |
| val response = post( | |
| "/v1/stream-chat-credentials", | |
| mapOf(), | |
| authToken | |
| ) | |
| return StreamCredentials( | |
| response.getString("token"), | |
| response.getString("apiKey") | |
| ) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment