Answers for "Call<> retrofit for waht use"

15

retrofit android

def retrofit_version = "2.9.0"
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
implementation "com.squareup.retrofit2:converter-gson:$retrofit_version"
Posted by: Guest on March-06-2021
0

retrofit

// Trailing slash is needed
public static final String BASE_URL = "http://api.myservice.com/";
Retrofit retrofit = new Retrofit.Builder()
    .baseUrl(BASE_URL)
    .addConverterFactory(GsonConverterFactory.create())
    .build();
Posted by: Guest on October-11-2021

Code answers related to "Call<> retrofit for waht use"

Browse Popular Code Answers by Language