Added getConfig and handshake methods to api