He served as a United States Representative from 1835 to 1836 , Governor of South Carolina from 1842 to 1844 , and United States Senator from 1857 to 1860 . He served as a United States Representative from 1835 to 1836 , the 60th Governor of South Carolina from 1842 to 1844 , and United States Senator from 1857 to 1860 .