The book, "Baron Trump's Marvelous Underground Journey",
by Ingersoll Lockwood, came out in 1893.
It's about a boy named Baron Trump who can time travel. H
is next book was called "The Last President", of which the president had a cabinet member named Pence.
The entire text of both books are posted in the two links below.