Next time just look at it.
http://www.apexi-usa.com/pdfInstallation/18.pdf
7 wires:
Red = power
Green = rpm
Gray = TPS
Brown = ground (mount closer to ecu than black says manual)
Black = ground
Yellow = Airflow signal out to ECU
White = Airflow signal into SAFC
Not used, blue, pink, orange and a few others probably.