Skip to content

Instantly share code, notes, and snippets.

@mikepyts
Created April 13, 2019 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikepyts/a587060eb38976035a658a462937060b to your computer and use it in GitHub Desktop.
Save mikepyts/a587060eb38976035a658a462937060b to your computer and use it in GitHub Desktop.
// 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