Message Boards Message Boards

CloudDeploy APIFunction accepting string?

Posted 6 years ago

base function:

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

then I am deploying this using CloudDeploy:

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

this giving back url but when I add ?x="Meteorite Landings" this in front of the link I am getting $Failed error

also how do I grab the dataset in json format?

POSTED BY: Sag Mk
Posted 5 years ago

I think the quoting is messing it up, resulting in the resource not being found.

Try ?x=Meteorite+Landings instead.

POSTED BY: Joel Klein
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract