Skip to main content
deleted 3 characters in body
Source Link

Deploy your API with public permissions or add Username and Password parametersoptions to URLFetch:

With[{cloudobject = FileNameJoin[{$CloudRootDirectory, "FactorIntegerAPI"}]}, 
   CloudDeploy[
      APIFunction[{"x" -> "Integer"}, FactorInteger[#x] &],
      cloudobject, Permissions -> "Public"]; 
   URLFetch[URLBuild[cloudobject, {"x" -> "1"}]]]

Deploy your API with public permissions or add Username and Password parameters to URLFetch:

With[{cloudobject = FileNameJoin[{$CloudRootDirectory, "FactorIntegerAPI"}]}, 
   CloudDeploy[
      APIFunction[{"x" -> "Integer"}, FactorInteger[#x] &],
      cloudobject, Permissions -> "Public"]; 
   URLFetch[URLBuild[cloudobject, {"x" -> "1"}]]]

Deploy your API with public permissions or add Username and Password options to URLFetch:

With[{cloudobject = FileNameJoin[{$CloudRootDirectory, "FactorIntegerAPI"}]}, 
   CloudDeploy[
      APIFunction[{"x" -> "Integer"}, FactorInteger[#x] &],
      cloudobject, Permissions -> "Public"]; 
   URLFetch[URLBuild[cloudobject, {"x" -> "1"}]]]
edited body
Source Link

Deploy your API with public permissions or add Username and Password parameters to URLFetch:

With[{cloudobject = FileNameJoin[{$CloudRootDirectory, "IntegerFactorAPI""FactorIntegerAPI"}]}, 
   CloudDeploy[
      APIFunction[{"x" -> "Integer"}, FactorInteger[#x] &],
      cloudobject, Permissions -> "Public"]; 
   URLFetch[URLBuild[cloudobject, {"x" -> "1"}]]]

Deploy your API with public permissions or add Username and Password parameters to URLFetch:

With[{cloudobject = FileNameJoin[{$CloudRootDirectory, "IntegerFactorAPI"}]}, 
   CloudDeploy[
      APIFunction[{"x" -> "Integer"}, FactorInteger[#x] &],
      cloudobject, Permissions -> "Public"]; 
   URLFetch[URLBuild[cloudobject, {"x" -> "1"}]]]

Deploy your API with public permissions or add Username and Password parameters to URLFetch:

With[{cloudobject = FileNameJoin[{$CloudRootDirectory, "FactorIntegerAPI"}]}, 
   CloudDeploy[
      APIFunction[{"x" -> "Integer"}, FactorInteger[#x] &],
      cloudobject, Permissions -> "Public"]; 
   URLFetch[URLBuild[cloudobject, {"x" -> "1"}]]]
Source Link

Deploy your API with public permissions or add Username and Password parameters to URLFetch:

With[{cloudobject = FileNameJoin[{$CloudRootDirectory, "IntegerFactorAPI"}]}, 
   CloudDeploy[
      APIFunction[{"x" -> "Integer"}, FactorInteger[#x] &],
      cloudobject, Permissions -> "Public"]; 
   URLFetch[URLBuild[cloudobject, {"x" -> "1"}]]]