Skip to content

Instantly share code, notes, and snippets.

@diegolucasb
Created July 12, 2018 16:33
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 diegolucasb/8848a3f7a8c9cd2046132cf1380a8feb to your computer and use it in GitHub Desktop.
Save diegolucasb/8848a3f7a8c9cd2046132cf1380a8feb to your computer and use it in GitHub Desktop.
val sdk = SlingSDK.build {
url = "https://url.com.br/v0/"
authenticationToken = token
affiliationCode = stoneCode
headers = mapOf()
}
sdk.merchant.contact.list(
success = { Log.i("SDK", it?.data?.forEach { it.toString() }.toString())},
error = { Log.e("SDK", it.toString()) }
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment