Erlang application for connecting to streaming data services with oauth