this is the configuration you will need, to open 1 door, by pressing the switch to any side.
if you want to open 2 doors, you will have to figure out which one of the contacts is the common. you will need a voltmeter to test it, or solder the wires and experimenting by touching the other contacts.
im almost positive that the one connected to the blue one is the common, but it's always good to test first.