adds httparty method to send query