hiː sˈɜːvd æz ɐ juːnˈaɪɾᵻd stˈeɪts ɹˌɛpɹᵻzˈɛntətˌɪv fɹʌm wˈʌn θˈaʊzənd ˈeɪthˈʌndɹɪd θˈɜːtiːn tə wˈʌn θˈaʊzənd ˈeɪthˈʌndɹɪd fˈɪftiːn, ænd fɹʌm wˈʌn θˈaʊzənd ˈeɪthˈʌndɹɪd twˈɛnti sˈɛvən tə wˈʌn θˈaʊzənd ˈeɪthˈʌndɹɪd twˈɛnti ˈeɪt, ænd æz nˈuː jˈɔːɹk stˈeɪt ɐtˈɜːni dʒˈɛnɚɹəl fɹʌm wˈʌn θˈaʊzənd ˈeɪthˈʌndɹɪd nˈaɪntiːn tə wˈʌn θˈaʊzənd ˈeɪthˈʌndɹɪd twˈɛnti wˈʌn.
He served as a United States representative from 1813 to 1815, and from 1827 to 1828, and as New York State Attorney General from 1819 to 1821.