Я использую этот код для отправки запроса на instagram и получения accesstoken.Получить токен доступа к Instagram с волейболом андроида
URL url = new URL(tokenURLString);
HttpsURLConnection httpsURLConnection = (HttpsURLConnection) url.openConnection();
httpsURLConnection.setRequestMethod("POST");
httpsURLConnection.setDoInput(true);
httpsURLConnection.setDoOutput(true);
OutputStreamWriter outputStreamWriter = new OutputStreamWriter(httpsURLConnection.getOutputStream());
outputStreamWriter.write("client_id="+CI +
"&client_secret="+ CS +
"&grant_type=authorization_code" +
"&redirect_uri="+CALLBACK_URL+
"&code=" + requestToken);
outputStreamWriter.flush();
JSONObject jsonObject = new JSONObject(StreamToString.get(httpsURLConnection.getInputStream()));
Как я могу это сделать с помощью андроидального залпа?
что такое 'code'? –