Added code samples to Connector API document