Hot answers tagged

11 votes
Accepted

Oauth for Khan Academy API

Update: Full Flow So after much wrangling here is the full OAuth 1.0 flow. ...
b3m2a1's user avatar
  • 46.6k
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: ...
rhennigan's user avatar
  • 1,783
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: ...
vapor's user avatar
  • 7,851
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':
Anton Antonov's user avatar
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 ...
Cabral's user avatar
  • 138
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's user avatar
  • 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: ...
Christopher Haydock's user avatar
5 votes

Tweeting an image, using URLExecute?

This should work with ServiceConnect. ...
dsingh's user avatar
  • 659
5 votes
Accepted

How to call Picture Bed API

Using URLFetch[]: ...
J. M.'s lack of A.I.'s user avatar
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 ...
C. E.'s user avatar
  • 69.8k
4 votes

How to return multiple types in APIFunction?

You can do something like this (encoding the PNG in Base64): ...
chuy's user avatar
  • 10.8k
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 ...
b3m2a1's user avatar
  • 46.6k
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: ...
GenericAccountName's user avatar
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 ...
user34018's user avatar
  • 869
3 votes

Getting stock quotes from Yahoo Finance API in Mathematica

Here's one way to get there: ...
lericr's user avatar
  • 22.2k
3 votes

Accessing Nutritionix API

This request works: ...
C. E.'s user avatar
  • 69.8k
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.
Jmeeks29ig's user avatar
  • 1,407
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: ...
J. M.'s lack of A.I.'s user avatar
3 votes

How to call Picture Bed API

In Mma 11, you can use this function URLRead[]. e.g. ...
Li Xuan's user avatar
  • 336
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: ...
Christopher Haydock's user avatar
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", ...
bcegkmqs23's user avatar
2 votes
Accepted

How to pass a URL parameter to FormPage?

The documentation shows using Apply to allow passing every parameter on FormPage via ...
Josh Bishop's user avatar
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. ...
isaac5122's user avatar
  • 787
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 ...
N0va's user avatar
  • 2,785
1 vote
Accepted

Character encoding of the output from URLExecute

Looks like a bug to me. Please report it to the support. Another workaround: ...
Alexey Popkov's user avatar
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: ...
vsht's user avatar
  • 3,457
1 vote

Getting stock quotes from Yahoo Finance API in Mathematica

Alternatively, you could try the following: ...
Nate's user avatar
  • 725
1 vote

How to enable WakaTime for the Mathematica front end?

I have expanded the initial thoughts into a draft package. ...
Gravifer's user avatar
  • 812
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 ...
SEngstrom's user avatar
  • 1,711
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"] ...
M.R.'s user avatar
  • 31k

Only top scored, non community-wiki answers of a minimum length are eligible