Use Green's Theorem which says the circulation of a vector field around a simpled closed curve in the xy-plane is equal to the line integral of the vector field evaluated around the curve. In ths problem the curve is diamond-shaped. So you have to parametrize each side and evaluate four separate line integrals.

BTW, is the answer to that flux problem in your textbook?