Skip to content

Commit

Permalink
updating api
Browse files Browse the repository at this point in the history
  • Loading branch information
vongomben committed Jun 28, 2020
1 parent f55ec1c commit cf0c597
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,22 @@ Alcuni temi tratatti nella plennary introduttiva
Prima chiamata ad una API, quella di [Madbob per GTT](https://gpa.madbob.org/). Flow [qui](https://raw.githubusercontent.com/OfficineArduinoTorino/ITS-IoT-2019-2021/master/madbob.json).

![](https://raw.githubusercontent.com/OfficineArduinoTorino/ITS-IoT-2019-2021/master/img/madbob.jpg)

### <a name="lez3"></a>Lezione 3 API

An application programming interface (API) is a computing interface which defines interactions between multiple software intermediaries. It defines the kinds of calls or requests that can be made, how to make them, the data formats that should be used, the conventions to follow, etc. It can also provide extension mechanisms so that users can extend existing functionality in various ways and to varying degrees.[1] An API can be entirely custom, specific to a component, or it can be designed based on an industry standard to ensure interoperability. Some APIs have to be documented, others are designed so that they can be "interrogated" to determine supported functionality. Since other components/systems rely only on the API, the system that provides the API can (ideally) change its internal details "behind" that API without affecting its users.

Source: https://en.wikipedia.org/wiki/Application_programming_interface

* [Magic](https://api.magicthegathering.io/v1/cards)
* [API Ryanair](https://developer.ryanair.com/discount-api/apis/get/3/discounts
)
* [Trenitalia](https://www.lefrecce.it/msite/api/solutions?origin=MILANO%20CENTRALE&destination=ROMA%20TERMINI&arflag=A&adate=20/12/2019&atime=17&adultno=1&childno=0&direction=A&frecce=false&onlyRegional=false
)
* [Le frecce](https://www.lefrecce.it/msite/api/geolocations/locations?name=%5BINIZIALE%5D)
* [API VALUTOMETRI](https://api.borsinopro.it/api-valutometri.html
)
* [OPEN WEATHERMAP](https://openweathermap.org/
api.openweathermap.org/data/2.5/weather?q={city name}&appid=15c9b19a8e4d2f9570a497c5f49d0541
)
* [QR code](https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=Example): cambia example con il dato
Binary file added img/openweathermap.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions openweathermap.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"id":"8b8f33f1.c9861","type":"inject","z":"49b49317.328e2c","name":"","topic":"","payload":"Turin","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":210,"y":960,"wires":[["7a82d052.d9fa2"]]},{"id":"7a82d052.d9fa2","type":"http request","z":"49b49317.328e2c","name":"","method":"GET","ret":"obj","paytoqs":false,"url":"http://api.openweathermap.org/data/2.5/weather?q={{payload}}&appid=15c9b19a8e4d2f9570a497c5f49d0541","tls":"","persist":false,"proxy":"","authType":"","x":460,"y":980,"wires":[["8b2a1853.93b0c8","94b28034.b28c","d5fc476b.827008"]]},{"id":"8b2a1853.93b0c8","type":"debug","z":"49b49317.328e2c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":" payload.name & ' '& payload.weather[0].main","targetType":"jsonata","x":740,"y":980,"wires":[]},{"id":"94b28034.b28c","type":"debug","z":"49b49317.328e2c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload.main.humidity","targetType":"msg","x":700,"y":1080,"wires":[]},{"id":"d5fc476b.827008","type":"debug","z":"49b49317.328e2c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload.weather.0.main","targetType":"msg","x":660,"y":1160,"wires":[]}]

0 comments on commit cf0c597

Please sign in to comment.