This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| object RetrofitGetAPIWithAuth { | |
| private val BASE_URL = BuildConfig.API_BASE | |
| private var retrofit: Retrofit? = null | |
| private val tokenLoginModel: TokenLoginModel? = obtainTokenLoginModel() | |
| private val accessToken = tokenLoginModel?.access_token | |
| class HeaderInterceptor : Interceptor { | |
| @Throws(IOException::class) | |
| override fun intercept(chain: Interceptor.Chain): Response { | |
| var request = chain.request() |