You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sdk.authenticate.post(email:"", password:""){(result)in
switch result {case.success(let response):print(response.object.data)self.sdk.setAffiliationCode(response.object.data.affiliationCodes)self.sdk.setToken(response.object.data.token)case.failure(let error):print(error)}}
Web
Itdoesnothaveauthenticationmethod
...Call get method from endpoint?
Kotlin
//Address sample
sdk.merchants.address.get(
success = { Log.i("SDK-Address", it?.data?.forEach { it.toString() }.toString())},
error = { Log.e("SDK-Address", it.toString()) }
)
//if you want to call get address from other API Url, just fill URL parameter like this:
sdk.merchants.partners.get(
url ="https://portalapi.stone.com.br/",
success = { Log.i("SDK-Information", it.toString())},
error = { Log.e("SDK-Information", it.toString()) }
)
//if you want to pass parameter to you endpoint, you have to call:
sdk.payments.calendar.get(
parameters =mapOf(
"startDate" to "2018-06-01",
"finalDate" to "2018-06-30",
"crossBalance" to "true"
),
success = { Log.i("SDK-Calendar", it?.data?.forEach{ it.toString() }.toString()) },
error = { Log.e("SDK-Calendar", it.toString()) }
)
Swift
sdk.merchant.address.get{(result)in
switch result {case.success(let response):print(response.object.data)case.failure(let error):print(error)}}
Web
sdk.merchants.addresses.get(params);
...Call get method from other endpoint different from gateway?