2
$\begingroup$

Base function:

beta = Function[{x}, y = ResourceData[ResourceObject[x]]]

Then I deploy this using CloudDeploy:

CloudDeploy[APIFunction[{"x" -> "String" }, beta[#x] &]] ;

which returns a URL. but when I try to pass params to it ny adding ?x="Meteorite Landings" in front of the link, I get a $Failed error

Also, how would I grab the dataset in json format?

$\endgroup$
2
$\begingroup$

I found the solution:

beta = APIFunction[{"tablename" -> "String"},ResourceData[ResourceObject[#tablename] ]& ]
co = CloudDeploy[beta, Permissions->"Public"]

for some reason it requires public permissions

$\endgroup$

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.