« Bash api » : différence entre les versions
Aucun résumé des modifications |
|||
| Ligne 56 : | Ligne 56 : | ||
<syntaxhighlight lang="bash" copy> | <syntaxhighlight lang="bash" copy> | ||
curl "https://api.exchangerate-api.com/v4/latest/EUR" | jq '.rates.USD' | curl "https://api.exchangerate-api.com/v4/latest/EUR" | jq '.rates.USD' | ||
</syntaxhighlight> | |||
=== open-meteo.com === | |||
<syntaxhighlight lang="bash" copy> | |||
curl -s "https://api.open-meteo.com/v1/forecast?latitude=48.85&longitude=2.35¤t_weather=true" | jq '.current_weather' | |||
</syntaxhighlight> | </syntaxhighlight> | ||
[[category:api]] | [[category:api]] | ||