Click here to Skip to main content
15,895,667 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
please any one can help to learn how a API Create and Use it another website or program like create a API In VB.net for user name and Password and then second person can access its service API In Same Or Other Language As PHP or C Sharp

What I have tried:

please any one can help to learn how a API Create and Use it another website or program like create a API In VB.net for user name and Password and then second person can access its service API In Same Or Other Language As PHP or C Sharp 
Posted
Updated 10-Jul-19 1:26am

An API (Application Programming Interface) is a program which allows public access into a specific system.
1. Internally it is a collection of methods (public and private) which is written for a specific environment (language, operating system, and other infrastructure).
2. Externally, accessing the API via an endpoint point; it is by nature agnostic to what is accessing it- as long as the format of the request is correct and complete.

The best way for you to learn how to create an API is probably to follow a tutorial or two; such as these for WebAPI:
1. Create Simple Web API In ASP.NET MVC[^]
2. Tutorial: Create a web API with ASP.NET Core | Microsoft Docs[^]

The API clients can now access the functions of this by creating a standardized request. The API Request itself is (programming) language agnostic, as long as the Request that is made is the same it does not matter if I created the request by typing it into a browser, or if I used SoapUI, or I accessed it within another application by making an HTTP request.

While the Request is language agnostic, making a request via code is going to depend on whatever language you are writing it in.
Python code does not run in a C# environment; BUT, there is
 
Share this answer
 
Your 119th question, and you still have no idea how to ask a question properly? :sigh:
Becoming a Help Vampire, are we?

You can't do exactly what you want to: you don't "write an API" and then use it in any language - an API is written for a specific language or a family of languages in the case of .NET. So a VB API can be used seamlessly in a C# application and vice versa, but not in PHP or COBOL. And a Native C++ API can't be used directly in C# or VB, you have to use DLLImport to access individual functions.

To work seamlessly in PHP, you'd really need the API written in PHP - and that wouldn;t be usable in VB or C#.
 
Share this answer
 
Comments
irfanansari 10-Jul-19 6:14am    
sir mny times you just here for criticize me but you never tell what is way of asking any Question and you never reply any Good Answer Just You Are Really became a Vampire be a human and help if you have any single peace of knowledge i tried but i think you sale your knowledge this is very simple if i want to learn any think new then i chose this plate form then you saying me i am wrong to selected this platform ?
CHill60 10-Jul-19 6:24am    
"but you never tell what is way of asking any Question " - There are posting guidelines displayed when you click the "Ask a Question" link.
Beyond that I think the solution is quite clear - you can't do what you seem to be asking how to do.
As your comments are really unclear, I suggest that you try writing out your comments in your native language, make sure your intent is clear and then use something like Google Translate[^] to post them in English here. We might be able to provide better help.
OriginalGriff 10-Jul-19 6:40am    
Have a look here:

https://communitymgt.fandom.com/wiki/Help_Vampire

And see if that fits your profile:

Articles 0
Tech Blogs 0
Messages 8 (Under Water)
Q&A Questions 120
Q&A Answers 1
Tips/Tricks 0
Reference 0
Comments 141

You have been with this site longer than I have: and you have one answer, which is very lowly rated, compared to 120 questions. Check out the "good answerers" here and compare their ratios with yours ...

You might want to think about that, just a bit.
irfanansari 10-Jul-19 12:53pm    
then what is your real problem is are you mental or i never asked you or kick your door are you Psychotic Person
irfanansari 10-Jul-19 6:15am    
for example google give allow API for Login his user name and password and they work in PHP and i Am Using In VB.net So I do not use it how strange talk you

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