I succeed to change and update values in Google Spreadsheet by sending the following request:
https://script.google.com/macros/s/########/exec?action=update&&redname=John&&bluename=Dow
from PC Internet Browser
But sending the same URL from android application is not working. For example the following script doesn't do anything:
BufferedReader reader = null;
StringBuffer buffer = new StringBuffer();
URL url = new URL(request);
HttpsURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setDoOutput(true);
connection.setInstanceFollowRedirects(false);
connection.setRequestMethod("GET");
connection.setRequestProperty("Content-Type", "text/plain");
connection.setRequestProperty("charset", "utf-8");
connection.connect();
I've tried many variants of the code but without success.
Any help is highly appreciated!
Thanks