This article will tell you how to use OkHttp3 to upload or download json string or file between web server and android application. You can read Android OkHttp3 Http Get Post Request Example to learn OkHttp for basic operation.
This example will show you how to use OkHttp3 to send get or post HTTP request to a web server and how to parse and display response text in an Android TextView.