Function Call From ASP.NET

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

It never hurts to look in the particle docs.

Also, try this.

2 Likes

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

That should help.

Thanks

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?

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

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