I did it with my infant daughter locked inside and it was close to 90 degrees out!
Luckily, the air conditioning was on with the car running.
The cops went to my wife's work to get the extra keys. All they told her, though, was "Your husband locked your daughter in the car."
28 years later and I'm still catching hell for that!