“Berlina” Código de respuesta

Berlina

Run API Requesthttp://api.weatherstack.com/current
    ? access_key = YOUR_ACCESS_KEY
    & query = Berlin
Doubtful Deer

Berlina

# coding: utf-8
import requests

params = {
  'access_key': 'YOUR_ACCESS_KEY',
  'query': 'Berlin'
}

api_result = requests.get('https://api.weatherstack.com/current', params)

api_response = api_result.json()

print(u'Current temperature in %s is %d℃' % (api_response['location']['name'], api_response['current']['temperature']))
Doubtful Deer

Berlina

Run API Requesthttp://api.weatherstack.com/current
    ? access_key = YOUR_ACCESS_KEY
    & query = New York
Doubtful Deer

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código