I created an API function that given an integer, would return the factors of that integer.
func=APIFunction[{"x"->"Integer"},FactorInteger[#x]&];
api=CloudDeploy[func]
This returns a URL which I can now append my query string to and submit for an answer.
Hyperlink[First[api]<>"?x=2434500"]
Instead of making this function call in Mathematica, I would like to call this function in a standalone application (using LiveCode). When I attempt this, my application requests the info from the URL, but it returns nothing. I believe this may be because there are credentials that I must provide to the Wolfram Cloud so it knows it is me. However, I do not know how to do this. Does anyone have experience making API calls to Wolfram Cloud (without using the EmbedCode[] function)? How do I go about authenticating with Wolfram Cloud? Are there other things that must be done by my application before this would work?
I also tested this by making an API that was Public like so:
func=APIFunction[{"x"->"Integer"},FactorInteger[#x]&];
api=CloudDeploy[func,Permissions->"Public"]
This also did not work.
the resultcontain any useful diagnostic information? – WReach Oct 23 '14 at 20:31CloudDeployin V10 front end authenticates using WolframID popup. Don't know about programmatically, isn't it anOption? – alancalvitti Oct 24 '14 at 14:53