Questions tagged [apifunction]
The apifunction tag has no usage guidance.
26
questions
3
votes
1
answer
491
views
Access openai with HTTPRequest but body parameters seems not function
Using Mathematica 13.0 on Windows 10
codes are below
...
1
vote
0
answers
100
views
Terms of use for functions that access data over the internet
Please excuse, as this is not a question about how to use a specific Mathematica function
or solve some specific problem with Mathematica. But, a correct and comprehensive answer might
be of interest ...
0
votes
0
answers
43
views
Instant API and cloud deploy not updating correctly
I set up an API and cloud deployed it to get the current weather in my city with
...
6
votes
1
answer
252
views
Can I Import data into Google Spreadsheet using a Wolfram Cloud API?
I would like to use the IMPORTDATA Google Sheets function to load a Wolfram Cloud API into my Spreadsheet. How can I do that?
3
votes
0
answers
58
views
Is there a feasible way to passively crosscheck sequences against the OEIS database?
What this questions is not: Can I access OEIS from Mathematica?
This topic has been raised more than once and has been well addressed.
Here's the situation as it seems to me:
OEIS is a tremendously ...
3
votes
1
answer
184
views
Deploying A Classifier Function
Let's say we train a classifier on the titanic dataset
cl = Classify[
ResourceData["Sample Data: Titanic Survival"] -> "SurvivalStatus"]
...
5
votes
1
answer
139
views
Build API Function
If I want to create an API function that takes two numbers a and b and returns an image. This image is supposed to be dynamically embedded on a web page that collects a and b and passes the values to ...
1
vote
1
answer
46
views
CloudDeploy DataSet does not work
I'm getting the following error when the code bellow is CloudDeployed:
...
3
votes
0
answers
131
views
APIFunction with TextRecognize problems
I have a simple API that takes a recipe and returns the list of ingredients:
...
0
votes
1
answer
60
views
How to CloudDeploy an Association as an API
A basic example for APIFunction[] is
doubled = APIFunction[{"x" -> "Real"}, #x*2&]; doubled["x"->6.5]
which shows ...
1
vote
0
answers
50
views
Use Wolfram Cloud to Create Site Visitor Database
Question: Is there a way to use Wolfram Cloud to create a web API function that, when pinged, does the following:
Gets the geographical location of the user (as an Wolfram entity, like ...
4
votes
1
answer
143
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
1
answer
74
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
0
answers
56
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 ...
2
votes
1
answer
69
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
1
answer
118
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:
...
15
votes
3
answers
646
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 ...
6
votes
1
answer
497
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
1
answer
95
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
1
answer
368
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
0
answers
179
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 <...
8
votes
1
answer
452
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 ...
7
votes
1
answer
333
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
1
answer
176
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:
...
7
votes
2
answers
325
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
1
answer
853
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 ...