Hi!
Trying to get the Algorithmia API work in Alteryx. Unfortunately, it requires R 3.3. Easy to get it working in R.
library("algorithmia", lib.loc="/Library/Frameworks/R.framework/Versions/3.3/Resources/library")
Any thoughts? Can I update the Alteryx R version without Alteryx imploding?
Kai :-)
Solved! Go to Solution.
Technically, you can. However if you have R installed previously, then that can cause issues occasionally.
For the Algorithmia API, have you tried the rest interface with the Download Tool? http://docs.algorithmia.com/#introduction
Kane
I have now...for hours... Sigh. All the examples I can find for the download tool are essentially for downloading a csv file from the web. This is quite a few steps beyond that.
Try the attached. You'll need to replace the API Key and you can also replace the name.
Basically, the Auth is Simple and so you just make a field called 'Authorization' with the word Simple followed by a space and then your API Key. (Note: If it was Basic Auth then you would have the word Basic followed by Your API Key Base64 encoded)
For the -d from the CURL statements, I constructed this as a query string. If you just submit the fields as payload then it'll appear as 'Your_Name=kaneg", but it'll still work. The reason I've set it up as a field for the query string is that you'll have to construct JSON parameters into a field and then POST that as the query string.
I've essentially made this call:
curl -X POST -H 'Authorization: Simple YOUR_API_KEY' \ -d 'HAL 9000' -H 'Content-Type: text/plain' \ https://api.algorithmia.com/v1/algo/demo/Hello/
Let me know if it is still not clear.
I've confused things a little there... Composing the Query/String Body would still work if the query wasn't important (such as in the Hello sample), however it is important here...
You need to 'Take Query String/Body from Field' on the Payload tab, otherwise it's trying to send 'Input="This system is easy to use"' rather than just "This system is easy to use".
User | Count |
---|---|
18 | |
14 | |
13 | |
9 | |
8 |