create

fun create(baseUrl: String = "https://archiveofourown.org/", okHttpClient: OkHttpClient? = null, interceptors: List<Interceptor> = listOf(), converterFactories: List<Converter.Factory> = listOf(), callAdapterFactories: List<CallAdapter.Factory> = listOf()): AO3Service

Factory method to create an instance of an AO3Service.

Specify the baseUrl if you wish to use this to perform testing.

Specify the okHttpClient if you have an existing OkHttpClient in your application. Retrofit will share resources with the existing client, but it will use its own configuration for its own requests.