Sunday, March 3, 2019

Asp.net MVC Remote Web API call with user input

I have a view where the user types in the city name. I need to then pass the city into the API URL so I can make a get request with httpwebrequest to return JSON data that I then serialize into another view.

Can someone talk me through a layman's understanding of what I need to do to accomplish such a thing and how to do it? Too many tutorials tell without explaining and assume high technical knowledge.

I'm using httpwebrequest because I found out afterwards that httpclient exists and I just need this working. Using OpenWeatherMap 5 day API call if it matters.

Asp.net MVC Remote Web API call with user input Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team