Shiny and Restful Api

792 views
Skip to first unread message

Martin Leen

unread,
Aug 13, 2014, 6:11:03 AM8/13/14
to shiny-...@googlegroups.com
Hi All,
First of all congrats on Shiny. Its deadly!!!

I have a question. I have a shiny app that takes an input file in Json Runs it through a classifier and returns a classified Json object.
I want the app to be able to communicate with an API. I want the API to post a file to the Shiny App which will do its work and return a classified object.
Basically I want the Shiny app to sit in the background until a file is posted and then do its work.
I know that I can use GET from the httr package to get a file from a url. which is fine if I know the file name.

However the filenames coming from the API will be different. So is there any way that I can make this dynamic according to the Post request tat comes from the API.


Thanks

M

Abhishek Pratap

unread,
Aug 18, 2014, 12:12:31 PM8/18/14
to shiny-...@googlegroups.com
+1 ..I would be interested in knowing the details too.

-Abhi 

Cory N

unread,
Aug 25, 2014, 4:25:16 PM8/25/14
to shiny-...@googlegroups.com
I think you may be looking for this package... http://rforge.net/FastRWeb/.  I use it to run a restful API in R. It's very easy to use once you get it set up.

cn
Reply all
Reply to author
Forward
0 new messages