Postman request to web API works but the C# code provided by postman doesnt function?

I have tested my request to web API through postman and it works fine, however when I use the code provided to add it into C# it doesn’t work. Any idea what I can try to change?

The response on postman is 1 so from the if statement it should display 1 but it says fail.