Erlang bulk API example code