Battery block api.

Hello everyone,

I am using https://www.sparkfun.com/products/13037 battery block for my prototyping. I looked for api’s if available, to get details about the current state (charging/ discharging, remaining battery) of battery in battery block but did not find any one. I want to know, is there any official repository is available which can provide current battery details of battery block? If available, please can you post here? If not, what other ways available for same?

Thanks and regards-

Rahul