Belief inside St James' Park had been rattled by four straight defeats - three of those in Premier League competition.
The goals had also dried up for Alan Pardew's side, with a winless run in the league seeing them fail to trouble the scorers.
Everything came good at Upton Park on Saturday, though, with Cabaye netting either side of an effort from Loic Remy to wrap up the points.
The French midfielder believes victory in the capital will help to lift to lift the Magpies and is looking for them to build momentum once they return from an enforced break.
Asked what sort of impact he expects the West Ham result to have, Cabaye said: "I hope a good one.
"We played well against City last week but unfortunately we lost the game.
"We knew it was a tough place here so we were focused and were determined to get something.
"We won, so now we are happy and we have got 10 days to get ready for the Norwich game. It's going to be tough as well, so we are happy today."
Newcastle endured a few nervy moments against the Hammers, after a Mike Williamson own goal offered the hosts a lifeline, but Cabaye was delighted with the Magpies' battling qualities.
He added: "The goal conceded just before half-time put us under pressure for the second half, and then they brought on Andy Carroll. We knew that they would play long ball for both strikers and it was hard, tough, but we are happy to win the game."