Created
April 13, 2019 18:52
-
-
Save mikepyts/a587060eb38976035a658a462937060b 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
// Get table | |
fun pullData() { | |
when (token) { | |
"Empty" -> { | |
authenticateAndAuthorize() | |
} | |
else -> { | |
doAsync { | |
val apiCall = gcpService.getTable("Bearer $token", 15).execute() | |
Log.d("JSON", apiCall.body().toString()) | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment