Angry Birds
(Part 6)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPMFb1HdH4bF4pnYuy2KPoJj-469R8twiNlZRSYAwiesCdhaoCrvQ41-bQbjo9_4NAVrpC9o3hXxTWNy8YKu5bK4hDxezC3Fg9M6HL_rWpTMj8KJ06jxkg1pMo_jKQ6__fDpbJSj61qWQG/w400-h225/Part+6.png)
*Please use desktop mode here in order to find link of codes*
JSON and API Calls:
API stands for Application Programming Interface. Using API calls we ordered a web server
to give us some information. Different Web Servers provided with different types of API calls
and "Promise" of information.
We began with using a simple API called worldtimeapi. It gave the time of any specified
location on the planet.
With this http://worldtimeapi.org/api/timezone/Asia/Tokyo you could change the continent
and the city to different values: Asia/Kolkata or Europe/London etc.
The data was stored in JSON data structure. JSON stands for Javascript Object Notation.A
JSON structure can hold multiple values inside { }. Each value was indexed by a name. For
example, the date and time value was indexed by the name "datetime”.
World Time API: http://worldtimeapi.org/api/timezone/Asia/Kolkata
Codes:
0 Comments: