From this datasheet,
http://www.usdigital.com/assets/gene...atasheet_0.pdf, which I found through a link on the AM supershifter page, pin 1 is +5VDC power, pin 2 is A channel, pin 3 is Ground, pin 4 is B channel. The encoder will take 2 digital inputs to be able to detect direction.