Message Boards Message Boards

GROUPS:

CloudDeploy APIFunction accepting string?

Posted 2 months ago
219 Views
|
0 Replies
|
0 Total Likes
|

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
Answer
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