You can get these tickets from vending machines or ticket counters at the Zurich Airport and Zurich main station (on buses with 3-digit numbers you can buy a ticket from the driver if there is no ticket machine at the bus stop).