Function Call From ASP.NET


#1

Has anyone made a particle function call using asp.net using HttpWebRequest in VB or C++? Can you direct me to documentation or code.

Thanks


#2

It never hurts to look in the particle docs.

Also, try this.


#3

Sorry I guess I just missed that in the doc!!!

That should help.

Thanks


#4

I was able to create WebRequest using asp.net OK, but having trouble send args to this test app. Here’s what my request url looks like:

https://api.particle.io/v1/devices/123/brew/?access_token=123&args=‘coffee’

the &args=‘coffee’… doesn’t seem to work. Is this the way it should be formatted?


#5

update I got it to work OK by adding the arg=coffee into the

Dim postData As String = “arg=coffee”

then the request url just looks like:
https://api.particle.io/v1/devices/123/brew/?access_token=123


#6

Correct. You can only send args with a POST request.