refs #4 Add get peer api and implementation