Yes, I know... Developers are constantly asking for an API of some sort, but seems that Xiaomi ignores that. Too bad, since the MiBand is a nice little device. Are you trying to use it on Android? There is also an iOs library (but seems very limited) and a Python one (has a lot of functions -
http://oscaracena.bitbucket.org/mibanda/api/)