Click here to Skip to main content
15,943,103 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
friends,
i want to know how to integrate any api in asp.net.
i m doing project on online mobile recharge site.in this 2 api will be included
one is of service provider and other for payment gateway.
Posted

how to integrate any api in asp.net.
Just add the reference to the 3rd party API service or assembly to your web project and you should be good to use them. 'Add Reference' for assembly and 'Add Web Reference' for a webservice.
 
Share this answer
 
Comments
Thomas Daniels 27-Dec-12 7:55am    
Comment from the OP, posted as a non-answer:
if it is web service then we have 2 add a reference of it.if api is working on post and get method then we hav 2 use httprequest and httpresponse
In addition to Solution 1, conventions are that you add the library or the assembly of third-party API to your bin folder; which is equivalent to Adding reference using the Add Reference tab and searching for the assembly. Once that has been done, you can then use the using keyword, to include the library in your source file.

C#
using NamespaceofPackage;


Then you can use the library in your web application.
 
Share this answer
 

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