I want to download a cloud APIFunction, but I don't get dependent functions back.

I tried deploying this function

f[] := "hello ";
g[] := "world!";
o = CloudDeploy[APIFunction[{}, f[] <> g[] &]];
"hello world!"

But when I download the CloudObject I only get the definition for the APIFunction, but I am missing definitions for g and f.

APIFunction[{}, f[] <> g[] &]
  • $\begingroup$ They are read too. If you want to see them try Import[o, "Text"] $\endgroup$ – Kuba Sep 13 '17 at 14:18

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.