ThingWorx API rest calls
I have been trying to send data to ThingWorx. To start I had created a Thing and a property to send a value to. I have a web application called www.markcheli.com/dummyPhonedata and am trying to send values from the Javascript in there to Thingworx.
I tried the following command:
$.ajax({
url: 'http://acadev1.cloud.thingworx.com/Thingworx/Things/Am2302Thing/Properties/Prop_Temperature/',
type: 'PUT',
data: 'value=1'
})
Using AJAX I am just trying to send Dummy data to the property "Prop_Temperature". On my phone this website
asks for permission to Thingworx using a login- after logging in the data does not send so the endpoint is never reached.
If I post to http://acadev1.cloud.thingworx.com/Thingworx/Things/Am2302Thing/Properties/Prop_Temperature ?method=put&value=4 it will send the value of
4 to the Thing property of Prop_Temperature.
Additionally, If I do not use the safari web browser on my phone it does not request permission to ThingWorx,thus it cannot even try to put this data on the website.
I tried using request to get access to ThingWorx:
Where 54.164.99.104 is the IP address of ThingWorx, AM2302Thing is our thing, and 8d2d147f-09cd-4df9-bb5e-d749060ce787 is our API key
Is there a different Rest call that will allow access to ThingWorx and send the value to a given property?
Also is there a problem with my PUT request that is not allowing to send the data to a given property?

