Created
September 16, 2019 16:40
-
-
Save anta40/6c15e2dca084d4532d6ccb18fc14147a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OkHttpClient httpClient = new OkHttpClient(); | |
HttpUrl url = new HttpUrl.Builder() | |
.scheme("https") | |
.host("xxx.yyy.zzz") | |
.addPathSegments("/android_login_api/login.php") | |
.addQueryParameter("userid", userid) | |
.addQueryParameter("password", password) | |
.build(); | |
Request httpRequest = new Request.Builder() | |
.url(url) | |
.build(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment