Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 05-27-2011, 05:22 AM   #1
In Runtime
 
Join Date: Sep 2010
Posts: 240
Default Re: API's

Hi, I understand that an application programming interface (API) is a particular set of rules and specifications that software programs can follow to communicate with each other.

My question is:

Do we use the windows api basically so that we can use its "vocabularies" (so we can calls its functions and use its classes with it understanding what we are refering to)?

So it enables me to uses windows stuff basically?
__________________

TP-Oreilly is offline   Reply With Quote
Old 05-28-2011, 03:31 PM   #2
In Runtime
 
Join Date: Sep 2010
Posts: 240
Default Re: API's

?
__________________

TP-Oreilly is offline   Reply With Quote
Old 05-28-2011, 11:44 PM   #3
7D8
In Runtime
 
7D8's Avatar
 
Join Date: Oct 2006
Posts: 209
Default Re: API's

Quote:
Originally Posted by TP-Oreilly View Post
Hi, I understand that an application programming interface (API) is a particular set of rules and specifications that software programs can follow to communicate with each other.

My question is:

Do we use the windows api basically so that we can use its "vocabularies" (so we can calls its functions and use its classes with it understanding what we are refering to)?

So it enables me to uses windows stuff basically?
This question is VERY ambiguous and I don't know about these "vocabularies". Although, I'm pretty sure the answer is YES!
7D8 is offline   Reply With Quote
Old 05-29-2011, 04:45 AM   #4
In Runtime
 
Join Date: Sep 2010
Posts: 240
Default Re: API's

Haha, thanks. i was just trying to have a clear understand of what an api is. T

hanks

Actually, just to be sure let me ask it in a different question

So an api is just a library?
TP-Oreilly is offline   Reply With Quote
Old 05-29-2011, 10:03 PM   #5
In Runtime
 
Join Date: Sep 2010
Posts: 240
Default Re: API's

?
TP-Oreilly is offline   Reply With Quote
Old 05-29-2011, 10:31 PM   #6
7D8
In Runtime
 
7D8's Avatar
 
Join Date: Oct 2006
Posts: 209
Default Re: API's

API is sort of a, not really, kind of like a library but it isn't all (lol).

Let's say that I create a program that allows you to upload pictures. I call this program PictureUploader.

Now, since everyone is using PictureUploader, I want to make is so that other programmers and can build software that can connect to PictureUploader and upload, download and manage photos through their own applications. In other words, I want them to use my service, but use their own applications. So parts of my application are able to be extended via an API. I determine what is in this API, what methods can be called and what properties can be read or set.

So I may create an interface like GetAllPhotos() which will return ALL of the links to the photos. Now when you are building your software and you want to use my API, one of the methods you can use to retrieve photos is GetAllPhotos().

Twitter does this so that you can access Tweets from Twitter.

A library is something like jQuery, which is a library for JavaScript.
7D8 is offline   Reply With Quote
Old 05-30-2011, 05:16 AM   #7
In Runtime
 
Join Date: Sep 2010
Posts: 240
Default Re: API's

Thanks very much for your reply, it is helpful

Am I good in thinking that an API is a library which includes subroutines, classes, values or type specifications.
TP-Oreilly is offline   Reply With Quote
Old 05-30-2011, 09:14 AM   #8
7D8
In Runtime
 
7D8's Avatar
 
Join Date: Oct 2006
Posts: 209
Default Re: API's

Quote:
Originally Posted by TP-Oreilly View Post
Thanks very much for your reply, it is helpful

Am I good in thinking that an API is a library which includes subroutines, classes, values or type specifications.
yes, but it all depends on the API. The Twitter API does not provide classes or type specifications. However, a DLL from CodePlex for example may as you use it to extend your program.
7D8 is offline   Reply With Quote
Old 05-30-2011, 09:40 AM   #9
In Runtime
 
Join Date: Sep 2010
Posts: 240
Default Re: API's

Thanks
__________________

TP-Oreilly is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 03:35 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0