Whooping cough vaccine

Hi, just wondering if any one has had the vaccine whilst pregnant? My GP wouldn't allow me to have it ( I'm 37 weeks) until after delivery but I had read and seen that you can get it during the 3rd trimester - any one know anything about this? Cheers :)