Retrofit Tutorial — Add Query Parameters to Every Request

preview_player
Показать описание
In this video you'll learn how to add query parameters to every request in Retrofit.

Find the tutorial for an easy read here:

Previous video on how to manage request headers:

Watch 20+ Retrofit videos in our playlist here:

----------------------------------------

Our book on Retrofit is also available on leanpub:

----------------------------------------

Checkout 320+ technical in-depth tutorials:

Subscribe for two new videos every week:

----------------------------------------

Follow us on social media to get updates on new content:

----------------------------------------
Рекомендации по теме
Комментарии
Автор

Hi,
I have something like this to add in query parameters
key1=[“A”, ”B”, C”]&key2=[[“A”, ”B”, 1], [“C”, ”D”, ”E”], [“F”, ”G”, ”H”].
How can I pass it into retrofit GET request.
It would be helpful if you could provide any solution or ideas. Thank you in advance.

Your videos are quite easy to follow. Thank you.

mihirraval
Автор

I need to make a Retrofit request using a group by query. Is it possible? Help pls

cristianboldrin
Автор

can we add the api_key to the base URL. if we can do it, what is the use of using interceptor instead of modifying baseURL?

SunilP
Автор

sir, have you skipped add query parameter video, It seems like you are directly teaching Add Query Parameters to Every Request.
But how to send query parameter. I know i can find it. but I think here introduction is missing. btw i am enjoying your all videos. Thanks a lot...!!

kunalkhedkar