core / com.schibsted.account.network.service.client / ClientService

ClientService

class ClientService : BaseNetworkService

This network service is used to perform client token based operations

Constructors

<init>

ClientService(environment: String, okHttpClient: OkHttpClient)

This network service is used to perform client token based operations

Functions

getClientAgreementsUrls

fun getClientAgreementsUrls(clientId: String): Call<ApiContainer<AgreementLinksResponse>>

getClientInfo

fun getClientInfo(clientToken: ClientToken, clientId: String): Call<ApiContainer<ClientInfo>>

getEmailSignUpStatus

fun getEmailSignUpStatus(clientToken: ClientToken, email: String): Call<ApiContainer<AccountStatusResponse>>

Queries for the signup checkPhoneStatus of an e-mail address.

getPhoneSignUpStatus

fun getPhoneSignUpStatus(clientToken: ClientToken, phone: String): Call<ApiContainer<AccountStatusResponse>>

Queries for the signup checkPhoneStatus of a phone number.

getProduct

fun getProduct(clientToken: ClientToken, productId: String): Call<ApiContainer<Product>>

getProducts

fun getProducts(clientToken: ClientToken): Call<ListContainer<Product>>

signUp

fun signUp(clientToken: ClientToken, email: String, redirectUri: String, inputParams: Map<String, Any>): Call<ApiContainer<ProfileData>>

Creates a user profile and associates it to an e-mail address if there is no such association yet.

Inherited Functions

createService

open fun <T : Any!> createService(service: Class<T>): T

Creates a service to perform network interactions against.