Click here to Skip to main content
14,240,044 members
Rate this:
Please Sign up or sign in to vote.
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
Rate this:
Please Sign up or sign in to vote.

Solution 2

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
   
Rate this:
Please Sign up or sign in to vote.

Solution 1

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#.
   
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
Dave Kreskowiak 10-Jul-19 11:24am
   
You don't write an API just for Logins. You also never specified what kind of application this login is supposed to be used for. Is the app your logging into a desktop application? A web application? A WebAPI app?

PHP is normally used to write web sites, so what is the server-side code of a website supposed to "login to"?

Your questions are bad because you leave out all of the important details required to describe the context of your questions.

The quality of the answers you get is directly dictated by the quality of the questions you ask.

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100