Click here to Skip to main content
15,914,943 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
hi,
i am having an application which i need to use some API to connect with another application and get input from there. i don't know how to use the API.
can any one give me related links or sample code that helps me to integrate API with my application.

Thank you,
Karthik
Posted

It's not necessarily as simple as that.

It is going to depend on a number of factors:
1) Do you have the source code to both applications?
2) If not, does the other application expose an API to access data from it?
3) If not, can you do magic?

If you have the source code, and you will always ask Application A for info, then I would look at the Socket[^] or TCPListener[^] classes.

If the Application exposes an API, then you need to look at the application - they are all different, so I can't be specific.

If neither of these, then the API you need is called PnP[^]
 
Share this answer
 
Comments
karthi34 26-May-11 7:25am    
thank you for the reply
the application A is in remote location. i have site,username and password
can u suggest how can i proceed with this
Try doing these simple steps:
1. Add API reference to your project.
2. Understand what all functionalities that API exposes.
3. Create a wrapper around that API, and allow that wrapper to be used by your 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