No municipal officer or employee shall knowingly accept any gifts, franks, free ticket or pass from any person, firm or corporation operating a public utility or engaged in business of a public nature within the city, or from any person known to be endeavoring to secure a contract with the city; provided, this section shall not apply to transportation of policemen or firemen in uniform or wearing their official badges, nor to persons allowed by general law to use passes or franks. No municipal officer or employee shall be interested directly or indirectly in any contract made by the city or receive any profit or emolument for purchase or sale of material or other article bought out of public revenues or for which the city becomes responsible.