Sending POST data475
Pages:
1ctmorrison private msg quote post Address this user | ||
I need to send a POST command via an event to a Particle device when certain conditions arise. I'm getting an error message that Particle is not seeing the access_token. When I set up the HTTP action package, I put the appropriate URL in the URL field and put "access_token=9999999999&args=abc" in the body of the POST dialogue. Here's an excerpt from the Particle docs: COMPLEMENTARY API CALL POST /v1/devices/{DEVICE_ID}/{FUNCTION} # EXAMPLE REQUEST curl https://api.particle.io/v1/devices/0123456789abcdef/brew -d access_token=123412341234 -d "args=coffee" |
||
Post 1 IP flag post |
ctmorrison private msg quote post Address this user | ||
OK...I may have figured it out. From one of your examples, I noticed the "content-type" header being specified and tried it. It appears to have worked. Still testing..... | ||
Post 2 IP flag post |
Pages:
1