Wolfram Language

Open live version

Make a Capital Temperature URL

Make a URL that returns the current temperature of the capital of a given country.


code

X

how it works

This expression gives the current temperature of the capital of Germany:

In[1]:=
X
Out[1]=

To make a URL that gives the current temperature of the capital of an arbitrary country, use APIFunction to specify the name of a query string field (country) and map it to the value country. Deploy to the cloud via CloudDeploy.

In[2]:=
X
Out[2]=

This hyperlink visits the page to get the temperature of the capital of Germany:

In[3]:=
X
Out[3]=

You can use the cloud function like any other Wolfram Language function from within the cloud or from the desktop:

In[4]:=
X
Out[4]=