example of how to use the library mslib/resource-proxy