I am currently developing an application that implements apigee, however I encountered a problem while trying to update entities. Below is the method I'm using now.
Map<String, Object> updatedEntity = new HashMap<String, Object>(); ArrayList<Map<String,Object>> subPropertyArray = new ArrayList<Map<String,Object>>(); Map<String, Object> subProperty = new HashMap<String, Object>(); subProperty.put("age", ""); subProperty.put("auto_checkin_times", auto_checkin_times); subProperty.put("auto_checkins_enabled", "on"); subProperty.put("bio", ""); subProperty.put("max_age", "999"); subProperty.put("min_age","18"); subProperty.put("dob", mDob); subProperty.put("locale",""); subProperty.put("sex", mGender); subProperty.put("sexual_preference", mSexualPreference); subProperty.put("utc_offset",""); subPropertyArray.add(subProperty); updatedEntity.put("type", "user"); updatedEntity.put("info", subPropertyArray); dataClient.updateEntityAsync(entityID, updatedEntity, new ApiResponseCallback() { @Override public void onResponse(ApiResponse apiResponse) { if (apiResponse != null) { Intent intent = new Intent(SetupPage.this, HomePage.class); startActivity(intent); } } @Override public void onException(Exception e) { Log.e("", e.toString()); } });
However, I get the following error:
"PUT error before ' https://api.usergrid.com/ ORGNAME / APPNAME / user / USERID"
and then:
"No Authentication Issues Found"
"doHttpRequest returned null"
Any help would be greatly appreciated. thanks