Retrofit2 calls for viewpager

I have created a viewpager with 2 fragments (fragmentA et fragmentB). For each fragment, I have to call a specific service with retrofit2 to get some datas. For example, for the fragmentA I want to …