0
$\begingroup$

I am looking at the examples of wolframscript to learn its capabilities and syntax. In one of the examples the following API is considered.

CloudDeploy[
    APIFunction[
        {"city"->"City"},
        (
            weather=WeatherForecastData[#city,DateObject[],UnitSystem->"Imperial"]//DeleteMissing//Normal;
            StringRiffle[ToString/@weather,"\n"]
        )&,
        ResponseForm[#,"WL",{"Result"}]&
    ],
    Permissions->"Public"
]

CloudObject["https://www.wolframcloud.com/objects/xxx"]

Following the example I deployed the API above and then tried to call it using the following wolframscript syntax.

wolframscript -api xxx -cloud -args city=Champaign

But it is not returning anything for me. Can someone check if it is responding for them. Maybe the syntax is different now since the tutorials are old.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.