onRequest and sendRequest deprecated in v20

broken api on version 29

onRequest and sendRequest deprecated in v20.