Url to thingspeak

Hi,

I have an issue with writing a string to Talkback (returnng 401 code).
TalkBack ID: 123456
Command ID: 789011
Designer view:
web1 url = https://api.thingspeak.com/talkbacks/123456/commands/789011.json

Blocks view:
Call web1.PutText = api_key=AAAAAABBBBBCCCC&command_string=Open&position=2

What am I missing ?

Regards,
Mb

Try with GET or POST ?

https://www.mathworks.com/help/thingspeak/writedata.html

Hi Tim,

That's true POST and GET can be use.
TalkBack ID: 12345
api_key=AAAABBBBBCCCCC
command_string = OPEN
From Thingspeak documentation:

POST https://api.thingspeak.com/talkbacks/12345/commands.json
api_key=AAAABBBBBCCCCC

Now how do you set that into an APP inventor.

That's where I'm struggling.

Regards,
Mb

You use the web component to build the url

http://ai2.appinventor.mit.edu/reference/components/connectivity.html#Web

Hi Tim,

I've manage to had it working :wink: I guess I needed to excange on the topic.
What I have found is that :
web1.PutText let you write/update to a talkback position.
web1.PostText let you add a talkback command at the end of the other comand.

Many thanks !

Kind regards,
Mb
If you want