TelematicsAuth

object TelematicsAuth

Entry point of Telematics authorization library.

Compatible with both Kotlin and Java languages

Functions

createDeviceToken
Link copied to clipboard
fun createDeviceToken(instanceId: String, instanceKey: String, email: String? = null, phone: String? = null, clientId: String? = null, firstName: String? = null, lastName: String? = null, birthDay: String? = null, maritalStatus: MaritalStatus? = null, childrenCount: Int? = null, address: String? = null, gender: Gender? = null): Task<CreateResult>
Creates new user with specified instanceId, instanceKey and optional parameters
getUserProfile
Link copied to clipboard
fun getUserProfile(instanceId: String, instanceKey: String, accessToken: String): Task<UserProfileResult>
Returns users profile information.
login
Link copied to clipboard
fun login(instanceId: String, instanceKey: String, deviceToken: String): Task<LoginResult>
Authorises user using instanceId, instanceKey and deviceToken.
refreshToken
Link copied to clipboard
fun refreshToken(instanceId: String, instanceKey: String, accessToken: String, refreshToken: String): Task<RefreshResult>
Refreshes accessToken when it expires.
updateUserProfile
Link copied to clipboard
fun updateUserProfile(instanceId: String, instanceKey: String, deviceToken: String, accessToken: String, email: String? = null, phone: String? = null, clientId: String? = null, firstName: String? = null, lastName: String? = null, birthDay: String? = null, maritalStatus: MaritalStatus? = null, childrenCount: Int? = null, address: String? = null, gender: Gender? = null): Task<Unit>
Updates user profile information