Difference between revisions of "API"

From BC$ MobileTV Wiki
Jump to: navigation, search
Line 12: Line 12:
 
''<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>
 +
would expose the functionalities of the ''somejavascript API'' that belongs to ''somesite.com''
  
  
 
* 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:41, 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> would expose the functionalities of the somejavascript API that belongs to somesite.com