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. ...
user avatar
  • 45.4k
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: ...
user avatar
  • 7,661
7 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: ...
user avatar
  • 1,733
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 ...
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" ...
user avatar
  • 132k
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: ...
user avatar
5 votes

Tweeting an image, using URLExecute?

This should work with ServiceConnect. ...
user avatar
  • 609
5 votes
Accepted

How to call Picture Bed API

Using URLFetch[]: ...
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 ...
user avatar
  • 68.7k
4 votes

How to return multiple types in APIFunction?

You can do something like this (encoding the PNG in Base64): ...
user avatar
  • 10.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: ...
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 ...
user avatar
  • 839
3 votes

Getting stock quotes from Yahoo Finance API in Mathematica

Here's one way to get there: ...
user avatar
  • 3,717
3 votes

Accessing Nutritionix API

This request works: ...
user avatar
  • 68.7k
3 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 ...
user avatar
  • 45.4k
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.
user avatar
  • 1,397
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: ...
user avatar
3 votes

How to call Picture Bed API

In Mma 11, you can use this function URLRead[]. e.g. ...
user avatar
  • 151
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: ...
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", ...
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 ...
user avatar
1 vote
Accepted

Character encoding of the output from URLExecute

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

Getting stock quotes from Yahoo Finance API in Mathematica

Alternatively, you could try the following: ...
user avatar
  • 573
1 vote

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. ...
user avatar
  • 747
1 vote

How to enable WakaTime for the Mathematica front end?

I have expanded the initial thoughts into a draft package. ...
user avatar
  • 648
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 ...
user avatar
  • 1,661
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"] ...
user avatar
  • 30.3k
1 vote

Where does Wolfram publish an index of built-in functions on the web?

It is "hidden" (in plain sight) at the bottom of the reference doc page. Here is a direct link: https://reference.wolfram.com/language/guide/AlphabeticalListing
user avatar
1 vote
Accepted

API HTTP Request Signing using base64 encoding/decoding and HMAC (Cryptocurrencies Exchange, GDAX)

Try changing IntegerString[Hash[StringJoin[opad,ExportString[IntegerDigits[Hash[StringJoin[ipad, message], method], 256],"Binary"]],method],16] to ...
user avatar
  • 436

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