API: Difference between revisions

From Computer Science Wiki
No edit summary
No edit summary
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<center>
[[file:Connection.png|right|frame|Web Science<ref>http://www.flaticon.com/</ref>]]
<blockquote style="padding: 5px; background-color: #FFF8DC; border: solid thin gray;">
  [[File:Exclamation.png]] This is student work which has not yet been approved as correct by the instructor
</blockquote>
</center>
 
[[file:Studying.png|right|frame|Using an API<ref>http://www.flaticon.com/</ref>]]


== Introduction ==
== Introduction ==
I am VERY GRATEFUL to Retriever Media Informatie B.V. who granted me permission to use their API material for my site.


In computer programming, an application programming interface (API) is a set of subroutine definitions, protocols, and tools for building application software. In general terms, it is a set of clearly defined methods of communication between various software components. <ref>https://en.wikipedia.org/wiki/Application_programming_interface</ref>
An API provides limited access to the functionality or data of an application or (online) service so it can be integrated into another application or service.  
<br />
[[File:Api.png|400px|]]
<br />
An <b>Api</b>, or <b>A</b>pplication <b>P</b>rogramming <b>I</b>nterface, is
 
<nowiki>
<ref> the url I cited by material from </ref>
</nowiki>


== How does it work or a deeper look ==
Google Maps’ API, for example, offers the possibility to integrate maps into your own website or app. The possibility to integrate the functionality of existing services ensures you don’t unnecessarily have to reinvent the wheel. You can expand your own offers and services by using APIs from other companies.


* If you are discussing a THING YOU CAN TOUCH, you must explain how it works, and the parts it is made of. Google around for an "exploded technical diagram" of your thing, [http://cdiok.com/wp-content/uploads/2012/01/MRI-Technology.jpg maybe like this example of an MRI]  It is likely you will reference outside links. Please attribute your work.
== Technique ==
* If you are discussing a PROCESS OR ABSTRACT CONCEPT (like [[fuzzy logic]]) you must deeply explain how it works.
In technical terms, an API contains a set of rules that manages and structures the communication between the various applications or websites. The API indicates what kind of data you can retrieve, how to do this and the format in which you will receive the data. When you do this according to the rules of the API, you will receive data or you can connect with functionalities which you will be able to use in your own application or websites. This way, the API is the link between your app that wants data and the supplier of the data. Data is mostly delivered in XML- or JSON-format.


== Examples ==  
== Who provides APIs? ==
Many large companies provide an API. Facebook, Google (for, among others, Google Maps and YouTube), Dropbox and Buienradar are examples of companies that make their API available. When you are able to register for a service via Facebook, or share a website without having to leave the website, this is enabled by the Facebook API. Facebook benefits from this because their service is being used without them having to disclose their code.


Please include some example of how your concept is actually used. Your example must include WHERE it is used, and WHAT IS BENEFIT of it being used.
There are different forms of APIs: private APIs are only there for internal use. Partner APIs are only made available to companies by agreement. This ensures quality control to some extent. Public APIs are made available for use by the public. Everyone can use them.


== Pictures, diagrams ==
The world is changing from analogue to digital and it is becoming increasingly important for companies to adapt to changes rapidly. APIs make it possible to exchange functionality and data in a structured and therefore stable way. As a result, companies can continue to focus on their key competences and combine these with services via APIs.<ref>https://www.retriever.nl/en/buzzword/api/</ref>


Pictures and diagrams go a LONG way to helping someone understand a topic. Especially if your topic is a little abstract or complex. Using a picture or diagram is a two part process:  
== API keys ==
An application programming interface key (API key) is a code passed in by computer programs calling an application programming interface (API) to identify the calling program, its developer, or its user to the Web site. API keys are used to track and control how the API is being used, for example to prevent malicious use or abuse of the API (as defined perhaps by terms of service).<ref>https://en.wikipedia.org/wiki/Application_programming_interface_key</ref>


# [https://www.mediawiki.org/wiki/Help:Managing_files upload a file]
The API key often acts as both a unique identifier & a secret token for authentication, and will generally have a set of access rights on the API associated with it.<ref>https://en.wikipedia.org/wiki/Application_programming_interface_key</ref>
# [https://www.mediawiki.org/wiki/Help:Images use the file on a wiki page]


== External links ==
== Example ==  
# https://deckofcardsapi.com/
# https://github.com/crobertsbmw/deckofcards


* It would be helpful
== What is an API (video) ==
* to include many links
<html>
* to other internet resources
<iframe width="560" height="315" src="https://www.youtube.com/embed/s7wmiS2mSXY" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
* to help fellow students
</html>
* Please make sure the content is good
* and don't link to a google search results, please


== References ==
== References ==
Line 48: Line 36:
<references />
<references />


[[Category:2017 case study]]
[[Category:web science]]
[[Category:Student created article]]
[[Category:web development]]

Latest revision as of 15:15, 13 December 2021

Web Science[1]

Introduction[edit]

I am VERY GRATEFUL to Retriever Media Informatie B.V. who granted me permission to use their API material for my site.

An API provides limited access to the functionality or data of an application or (online) service so it can be integrated into another application or service. 

Google Maps’ API, for example, offers the possibility to integrate maps into your own website or app. The possibility to integrate the functionality of existing services ensures you don’t unnecessarily have to reinvent the wheel. You can expand your own offers and services by using APIs from other companies.

Technique[edit]

In technical terms, an API contains a set of rules that manages and structures the communication between the various applications or websites. The API indicates what kind of data you can retrieve, how to do this and the format in which you will receive the data. When you do this according to the rules of the API, you will receive data or you can connect with functionalities which you will be able to use in your own application or websites. This way, the API is the link between your app that wants data and the supplier of the data. Data is mostly delivered in XML- or JSON-format.

Who provides APIs?[edit]

Many large companies provide an API. Facebook, Google (for, among others, Google Maps and YouTube), Dropbox and Buienradar are examples of companies that make their API available. When you are able to register for a service via Facebook, or share a website without having to leave the website, this is enabled by the Facebook API. Facebook benefits from this because their service is being used without them having to disclose their code.

There are different forms of APIs: private APIs are only there for internal use. Partner APIs are only made available to companies by agreement. This ensures quality control to some extent. Public APIs are made available for use by the public. Everyone can use them.

The world is changing from analogue to digital and it is becoming increasingly important for companies to adapt to changes rapidly. APIs make it possible to exchange functionality and data in a structured and therefore stable way. As a result, companies can continue to focus on their key competences and combine these with services via APIs.[2]

API keys[edit]

An application programming interface key (API key) is a code passed in by computer programs calling an application programming interface (API) to identify the calling program, its developer, or its user to the Web site. API keys are used to track and control how the API is being used, for example to prevent malicious use or abuse of the API (as defined perhaps by terms of service).[3]

The API key often acts as both a unique identifier & a secret token for authentication, and will generally have a set of access rights on the API associated with it.[4]

Example[edit]

  1. https://deckofcardsapi.com/
  2. https://github.com/crobertsbmw/deckofcards

What is an API (video)[edit]

References[edit]