How did the United States acquire West Florida from Spain in 1812?

as part of the Adams-Onís Treaty

as part of the Louisiana Purchase

by seizing Mobile

by invading Baton Rogue