11 Mar 2016 Sean Cook, engineer @ Twitter has a github repo with a simple app that do exactly what you are trying to do, I'using this code in my app and it works like a charm..