Julius Kübler in MATLAB Answers
上次活动时间: 2021-1-28

Hey there, I want to delete a thingspeak channel using the webwrite function. This is what it looks like: url = ['https://api.thingspeak.com/channels/' channelID '.json'] options = weboptions('RequestMethod','delete', 'MediaType','application/x-www-form-urlencoded'); response = webwrite(url,'api_key',userAPIkey,options) This returns status 401 Unauthorized. But if I only change the RequestMethod to 'put', I don't get any errors. But using 'put' only allows me to change the channel settings. How do I delete the channel using webwrite?

关于 ThingSpeak

The community for students, researchers, and engineers looking to use MATLAB, Simulink, and ThingSpeak for Internet of Things applications. You can find the latest ThingSpeak news, tutorials to jump-start your next IoT project, and a forum to engage in a discussion on your latest cloud-based project. You can see answers to problems other users have solved and share how you solved a problem.