Trying ro use retrofit for pexels API im fresh

Viewed 70

I dont have code , i want to get photos id, url, phtographerName, src. https://www.pexels.com/api/documentation/ I want curated images and search images I just want to understand how this works Using retrofit , And how can i use 2 APIs in same project What should i do in retrofitClient class public retroClient() {

}

private static Retrofit getRetroClient() {
    return new Retrofit.Builder()
            .baseUrl(ROOT_URL)
            .addConverterFactory(GsonConverterFactory.create())
            .build();
}

public static Api getApiService() {
    return getRetroClient().create(Api.class);
}
0 Answers
Related