Go Down

Topic: Cosm and MIT's app inventor (Read 1 time) previous topic - next topic

kerimil

Hi,
I am trying to use Cosm with apps created using MIT's app inventor (basically enabling web for this -> http://arduino.cc/forum/index.php/topic,148853.0.html)

I do receive data - ie GET requests work fine, but I can't work out how to PUT data. The problem is that MIT's app inventor only allows to methods - get or post

I tried adding '&?_method=post' to the URL but that doesn't work - I get a 403


Oh and since I can actually GET data from Cosm one way communication is possible - if you want to I might as well post an example app

kerimil

hate to respond to my own posts but I got it to work

strange I am sure I was doing exactly the same thing before

Just this URL
http://api.cosm.com/v2/feeds/XXXXXXXXXXX/datastreams/1.csv?key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&_method=put

then POSTing text string

and it works, though I didn't work before  :~

lol I guess I was too tired or something


anyway, expect an example app that allows two way communication (COSM <=> ANDROID APP <=> ARDUINO) soon  8)

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy