I would like to calculate the path integral $S$ of $1/(z^2-1)$ along the curve $|z|=2$.
Using the parametrization $y: [0, 2\pi] \rightarrow \mathbb{C}, y(t)=4e^{it}$ and the partial fraction expansion $1/(z^2-1) = -(1/2)/(z+1) + (1/2) / (z-1)$ we get
$S=\int_y 1/(z^2-1) dz = \int_y-(1/2)/(z+1) dz+ \int_y(1/2) / (z-1)dz$.
So to calculate the first integral we would need to determine
$\int_{[0, 2\pi]}e^{it}/(4e^{it}+1)dt$, and a similar expression for the second integral.
How can we continue from here?
As regards your integral $$\begin{align*}\int_{[0, 2\pi]}\frac{e^{it}}{4e^{it}+1}dt&=\int_{[0, 2\pi]}\frac{e^{it}(4e^{-it}+1)}{|4e^{it}+1|^2}dt\\ &=\int_{[0, 2\pi]}\frac{4+\cos t+i\sin t}{17+8\cos t}dt\\ &=2\int_{[0,\pi]}\frac{4+\cos t}{17+8\cos t}dt\\ &=\frac{1}{4}\left[t+2 \arctan(3/5 \tan(t/2))\right]_0^{\pi}=\frac{\pi}{2}.\end{align*}$$
However, by using Residue Theorem, it is easy to see that the required complex path integral is zero.