Click here to Skip to main content
15,881,089 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi Can i link an api in my windows application...
Suppose i need to calculate currency of any country and for that i want to use a built in currency calculator available online....
Posted

1 solution

The question is a bit too general; and you treat the term "API" to widely. It depends on the service you want to use. It could be a Web Service; in this case, you would use the interface published by the owner of the server or you may have WSDL file, produce C# or VB.NET proxy code using WSDL.EXE and include obtained source code in your project.

In other cases, you may need to send your request in the URL and analyze the HTML or other content you receive in response to get the data you need, in the style of what is usually called "Web scraping". Basically, you will need to use HttpWebRequest/HttpWebResponse.

Please see my solution and discussions:
How to get the data from another site[^],
get specific data from web page[^].

—SA
 
Share this answer
 
Comments
Monjurul Habib 25-Dec-11 16:04pm    
5!
Sergey Alexandrovich Kryukov 25-Dec-11 16:06pm    
Thank you, Monjurul.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900