Wild Wild West, The 1965 – 1968 CBS

Secret agents in the old west. Artemus Gordon (Ross Martin) and Major James West (Robert Conrad)
Two under agents in post-civil war America working for President Ulysses S Grant in efforts to enforce law and order in the frontier lands of the wild west. The pair of them operate from a private train and are equipped with enough secret weapons and gadgets to make even Bond or the U.N.C.L.E. jealous.

A feature film remake was produced in the late 1990’s starring Will Smith, but probably best not to say too much about that.