The api has Oauth2.0 authentication enabled and i am able to connect to api using web api application where i have used Authorization Code