11
votes
Accepted
Oauth for Khan Academy API
Update: Full Flow
So after much wrangling here is the full OAuth 1.0 flow.
...
8
votes
Accepted
How to access a web API with HTTP POST and JSON
This should do the trick if you fill in the appropriate authentication headers:
...
7
votes
Accepted
How to upload an image to the Stack Exchange Imgur account?
Update on June 29th, 2020
Since API has changed, the new code is here:
...
7
votes
Is anyone aware of Mathematica implementation of OpenAI's GPT-3 API?
There is a paclet
OpenAILink (by Christopher Wolfram):
Also, check-out the paclet
'OpenAIMode':
6
votes
Accepted
Generating Google BigQuery API Access Token in Wolfram Language
Google Cloud Platform uses the RS256 algorithm to send JWT and retrieve the tokens, all that is needed is to make a function that builds the JWT and creates a signature using ...
6
votes
Accepted
How to CloudDeploy an APIFunction that takes audio as input?
You can create an APIFunction with a very similar syntax and return e.g. a png"
...

Kuba♦
- 136k
6
votes
Accepted
APIFunction on Images
If you call the API with the image encoded as a URL parameter there will be image size limitations. The solution is to instead post multipart/form-data to the API:
...
5
votes
5
votes
Accepted
5
votes
How do I display my weather data in JSON format from Wolfram Mathematica API?
The : is used for named patterns, it's not part of any key-value data structure in Mathematica. You will not find it used in the way you propose anywhere in the ...
4
votes
How to return multiple types in APIFunction?
You can do something like this (encoding the PNG in Base64):
...
4
votes
APIFunction can not access HTTP request body when used with URLDispatcher
So after some digging and breaking "MQTTLink`" for while I found that "MQTTLink`" is passing garbage out to its handler ...
4
votes
How to make an API with CloudDeploy to download an image into the local disk?
You can use the channel framework to communicate between your local session and the cloud api you deploy. First create a channel listener with public permissions in your local session:
...
4
votes
How to pass a list to APIFunction?
I found the answer in here
https://community.wolfram.com/groups/-/m/t/1055892
api1 = APIFunction["x" -> RepeatingElement["Integer"], Max[#d]&]
But ...
3
votes
3
votes
3
votes
How can I deal with a 502 error?
Alright, I got into contact with the support for the API, and the problem was resolved on their end. Apparently, it was an error in the routers' networking configuration.
3
votes
How to call Imgur API
Here's a starting point: after getting your own client ID from here, use the following code, which uses URLFetch[] like in this previous answer:
...
3
votes
2
votes
Accepted
How to CloudDeploy an API and then use curl?
Deploy your API with public permissions or add Username and Password options to URLFetch:
...
2
votes
Accepted
Cannot submit valid form in FormFunction
As @Kuba had commented, ImportString[#, "HTTPRequest"]& does not turn POST parameters to rules. So the property "FormRules", ...
2
votes
Accepted
How to pass a URL parameter to FormPage?
The documentation shows using Apply to allow passing every parameter on FormPage via ...
2
votes
Deploying A Classifier Function
After a bit of playing around, I think I have a workable solution to share.
Firstly, let's create a classifier using the titanic datset.
...
2
votes
Accepted
How to specify the type/Head of the optional named arguments to a function?
I am not sure how to get this working when using OptionsPattern explicitly but at the cost of a bit more syntax when calling ...
1
vote
Accepted
Character encoding of the output from URLExecute
Looks like a bug to me. Please report it to the support.
Another workaround:
...
1
vote
Character encoding of the output from URLExecute
For some reason, applying ToCharacterCode and then
FromCharacterCode to the problematic strings seems to fix
the encoding:
...
1
vote
Getting stock quotes from Yahoo Finance API in Mathematica
Alternatively, you could try the following:
...
1
vote
How to enable WakaTime for the Mathematica front end?
I have expanded the initial thoughts into a draft package.
...
1
vote
Authentication dialog triggered by URLExecute in Wolfram player does not allow me to type in username/password
The answer is in their FAQ: https://www.wolfram.com/cdf/faq/
Why can't I edit text in CDF Player?
CDF Player is intended as a deployment option. If you want to edit or create applications or ...
1
vote
How to download user faves on Flickr?
This is not a full answer
As @b3m2a1 suggested, I looked into the paclet and tried updating the functions:
p = PacletFind["Service*_*Fl*"]
p[[1]]["Location"]
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
api × 54web-access × 15
wolfram-cloud × 13
cloud-deploy × 9
apifunction × 6
http-functions × 6
import × 4
webservices × 4
mathlink-or-wstp × 3
external-calls × 3
data-acquisition × 3
social-media × 3
url × 3
functions × 2
image-processing × 2
java × 2
html × 2
query × 2
json-format × 2
parameters × 2
authentication × 2
bugs × 1
dynamic × 1
warning-messages × 1
special-functions × 1