Difference between revisions of "API"

From BC$ MobileTV Wiki
Jump to: navigation, search
(New page: An '''Application Programming Interface''' (or commonly abbreviated as ''API''), is a mechanism for exposing the core functionality of an application (such as a client or desktop program, ...)
 
Line 10: Line 10:
 
JavaScript APIs require only a standard <code><script></code> tag to be added to a webpage in order to expose their functionality. For example:
 
JavaScript APIs require only a standard <code><script></code> tag to be added to a webpage in order to expose their functionality. For example:
 
<code>
 
<code>
<script type="text/javascript" src="http://www.somesite.com/somejavascript.js"></script>
+
''<script type="text/javascript" src="http://www.somesite.com/somejavascript.js"></script>''
 
</code>
 
</code>
  
  
 
* Passing JSON message across servers (JavaScript API): http://ajaxpatterns.org/JSON_Message
 
* Passing JSON message across servers (JavaScript API): http://ajaxpatterns.org/JSON_Message

Revision as of 20:40, 5 March 2008

An Application Programming Interface (or commonly abbreviated as API), is a mechanism for exposing the core functionality of an application (such as a client or desktop program, web site or web service) to an external application (of any of the previously mentioned types).

Since the days of Web 2.0, an API is seen as a crucial element to any Web Application or Web Service. In general though, APIs are crucial parts of an application design and implementation strategy. They ensure the involvement of third-parties and outside developers in the products and services you create, and they can also help to breed innovation.



JavaScript APIs

JavaScript APIs require only a standard <script> tag to be added to a webpage in order to expose their functionality. For example: <script type="text/javascript" src="http://www.somesite.com/somejavascript.js"></script>