You can find a complete GameSparks Real-Time example here.