Beginning to refactor the way POST parameters are error-checked and appended to API requests.