Actually, I think I found a way to do this without using complex analysis.
The answer is pi.
Let [tex]f(x) = \frac{1}{1+e^{sin(x)}}[/tex] and [tex]g(x)=f(x-\pi)-\frac{1}{2} = \frac{1}{1+e^{sin(x-\pi)}}-\frac{1}{2}[/tex].
I will now show that g(x) is an odd function on the interval [tex]\left[-\pi,\pi\right][/tex]. For this to be true, I need g(x)=-g(-x), or g(x)+g(-x)=0.
Using the fact that sin(x-pi)=-sin(x) and sin(-x-pi)=sin(x),
[tex]g(x)+g(-x)=[/tex]
[tex]=\frac{1}{1+e^{sin(x-\pi)}}-\frac{1}{2}+\frac{1}{1+e^{sin(-x-\pi)}}-\frac{1}{2}[/tex]
[tex]=\frac{1}{1+e^{-sin(x)}}+\frac{1}{1+e^{sin(x)}}-1[/tex]
[tex]=\frac{1+e^{sin(x)}+1+e^{-sin(x)}}{(1+e^{-sin(x)})(1+e^{sin(x)})}-1[/tex]
[tex]=\frac{2+e^{sin(x)}+e^{-sin(x)}}{1+e^{sin(x)}+e^{-sin(x)}+1}-1[/tex]
[tex]=1-1=0[/tex]
Therefore, g(x) is odd, which implies that [tex]\int_{0}^{2\pi}g(x+\pi) dx=0[/tex].
Because [tex]f(x)=g(x+\pi)+\frac{1}{2}[/tex],
[tex]\int_{0}^{2\pi}f(x) dx[/tex] simply becomes [tex]\int_{0}^{2\pi}\frac{1}{2} dx[/tex], which is obviously pi.