from the doc https://www.geni.com/platform/developer/help/api?path=photo%2Fadd&a...
it says the URL for adding photos is
https://www.geni.com/api/photo/add?title=foo&text=text-doc
however when I try
POST https://sandbox.geni.com/api/photo/add?access_token=xxx&descrip...
Geni says
<title class="notranslate">Geni Will Be Right Back!</title>
when will Geni be back, to add my photos via the API ?
thanks
thanks, that works OK, photo uploaded OK
byte[]b=StringHelper.filetoByteArray(file);
String payload=Base64.getEncoder().encodeToString(b);
NameValuePair np=new BasicNameValuePair("file",payload);
httppost.setEntity(new UrlEncodedFormEntity(Arrays.asList(np)));
httppost.setHeader("Accept", "application/x-www-form-urlencoded");
httppost.setHeader("Content-type", "application/x-www-form-urlencoded");