[What you need to know to start the day: Get New York Today in your inbox.]

The messages landed in mailboxes across Queens like clockwork: glossy fliers, such as those from a political campaign, extolling a deal that would bring Amazon to Long Island City, paid for by Amazon.

With smiling faces and iconic Queens scenes, three rounds of fliers arrived in recent weeks as part of a concerted effort by the company to reset its image after the mostly disastrous rollout of its plans for a corporate campus in New York City. The opposition was fueled by Democratic activists and others inspired by Rep. Alexandria Ocasio-Cortez.

Now Amazon is striking back.

The company offered a few salves to skeptics on Wednesday at a City Council hearing: It will hire public housing residents to work at a new 30-person customer service center and establish a certificate program at LaGuardia Community College to help students gain entry-level technology jobs. The company also announced that it would fund computer science courses at more than 130 New York high schools.

But Amazon executives, during their testimony, referred obliquely to the company’s displeasure at the local opposition that has greeted it and appeared to entertain the idea of backing away from the deal.