I need help evaluating the following complex integral $$\int_0^{2\pi} e^{ie^{it}}e^{-it} dt$$
I know that it evaluates to $2\pi i.$
My try was to use differentiation inside integral sign, with
$$I(x) = \int_0^{2\pi} e^{ixe^{it}}e^{-it} dt,$$
but this doesn't work because I need to differentiate two times (this function depends of $x$, it isn't constant as usually with this technique).
I can't use any strong theorems of complex analysis such as residues, Cauchy integral formula, etc, but I can use anything about integrals, series, and complex numbers in general.
Any hints are appreciated.
Note that $$\int_0^{2\pi} e^{ie^{it}}e^{-it} dt = \int_0^{2\pi}e^{-it}\sum_{k=0}^\infty\frac{i^k}{k!}e^{ikt} dt = \sum_{k=0}^\infty \frac{i^k}{k!}\int_0^{2\pi}e^{i(k-1)t} dt $$ where $ \int_0^{2\pi}e^{i(k-1)t} dt =0$, except for the $k=1$. Thus $$\int_0^{2\pi} e^{ie^{it}}e^{-it} dt=i \int_0^{2\pi} dt=2\pi i $$