Added ability to specify flash api url