"well it has 3 pins.. base, emitter and collector... now i presume i take an analog input from the collector, base to ground and emitter to supply. Is this right?"
I belive that is right. However there should be a load resistor from the collector to Vcc voltage, and the analog input is taken from the junction of the resistor and collector. The base pin can be used to set the bias for the phototransistor such that the transistor is operating in a linear mode, otherwise it may just act like a simple switch, showing light or no light. Should be lots of circuit examples on the web and different phototransistors will most likely have different bias requirements depending on how you want to utilize it.