Please refer to https://www.bitgo.com/api/#examples for some context on these examples.
We have placed the wallet recovery tool in the repository at https://github.com/BitGo/bitgo-recovery-tool Alternatively, you may use our GUI at http://bitgo.github.io/bitgo-recovery-tool/ to recover funds.