pi.xhr.environment.getApi()
>>> foo instanceof pi.xhr true >>> foo.environment.getApi(); XMLHttpRequest Object