Questions tagged [apifunction]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4
votes
1answer
48 views

How to return JSON from APIFunction without string encapsulation?

I am trying to get an APIFunction to send valid JSON. This is my demo function. ...
2
votes
1answer
52 views

How can I deal with a 502 error? [closed]

I am working on a program that interfaces with a web API. Mathematica runs perfectly fine for a few hours and then, after a while, will sometimes return: The request to URL https://api.polygon.io/...
1
vote
0answers
48 views

what is equivalent of dataset when using with APIFunction? [duplicate]

I am researching on building a backend for website using Wolfram. APIFunction is great to use, but I can't figure out how should I store data like using dataset in a local notebook when using ...
1
vote
1answer
39 views

Is there any logging for cloud deployed API? If yes, how to check those?

I am testing using CloudDeploy[APIFunction[...]]. I can not find any info about real time logging. If there is any problem happening with the cloud deployed API,...
2
votes
1answer
67 views

How to pass parameter to an API function?

I have a very simple question. I don't know how to pass multiple parameters to a web deployed APIFunction. I created a function: ...
14
votes
2answers
378 views

How to set ZeroMQ subscribe channel in Mathematica?

Mathematica 11.2 can do ZMQ socket programming now! But I cannot find out how to set subscribe channel from searching the doc. When using c language there is a function ...
5
votes
1answer
297 views

APIFunction can not access HTTP request body when used with URLDispatcher

I noticed a strange behavior regarding the APIFunctionwhen used with URLDispatcher. It does not allow me to access the body of a ...
5
votes
1answer
68 views

How to create an APIFunction that takes a list with constraints on the list elements?

This APIFunction takes a list as an argument: ...
8
votes
1answer
243 views

Cloud Deploying a Scheduled Task

cross-posted on the Wolfram Community forum I am trying to deploy a ScheduledTask that monitors the state of a google spread sheet every hour. I want the object to ...
3
votes
0answers
156 views

APIFunction calling another API

I've built a set of Wolfram APIs that call another API which builds specific queries given the parameters of a database and then outputs that query for the client in the query language syntax. Using <...
6
votes
1answer
218 views

How to authenticate in Wolfram Cloud created API?

Maybe this is stupid, but lets take a look at the following scenario: I created an API in Wolfram Cloud and deployed it with private permissions. However, I can't access it from the autogenerated code ...
5
votes
1answer
197 views

How to make APIFunction accept parameters from body?

How to make APIFunction get its parameters from the body? By default it uses the request URI, which is first insecure, and second, won't allow me to pass e.g. ...
2
votes
1answer
133 views

How to return multiple types in APIFunction?

I'd like to publish an api that returns an image as well as a number, but it seems that the docs for APIFunction specifies only a single possible format type: Here's an example to play with: ...
5
votes
1answer
176 views

Build API without the WolframCloud?

I'd like to have my code and api deployed, but not to the Wolfram Cloud. I have a an APIFunction, and I'd like to CloudDeploy it ...
5
votes
1answer
641 views

Calling APIFunction from Javascript

I want to load a csv file describing a graph from jQuery and call an APIFunction to evaluate its global clustering coefficient. I'm not sure on how to call the APIFunction from the html form. I'm ...