Clearing a Private Channel using REST API | ThingSpeak API | Forum

Avatar

Please consider registering
Guest

Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

Register Lost password?
sp_Feed sp_TopicIcon
Clearing a Private Channel using REST API
Avatar
chinthakajay
New Member
Forum Posts: 1
sp_UserOfflineSmall Offline
1
July 5, 2017 - 12:18 pm
sp_Permalink sp_Print

Hi,

I have tried to clear my channel using https://api.thingspeak.com/channels/CHANNEL_ID/feeds.json api_key=USER_API

Of course CHANNEL_ID & USER_API replaced correctly. When i send this request by just typing it in the address bar of my browser it gives the response "-1". But the channel does not clear. What am i doing wrong here?

Avatar
cstapels

Gold
Forum Posts: 126
sp_UserOfflineSmall Offline
2
July 5, 2017 - 2:08 pm
sp_Permalink sp_Print sp_EditHistory

Your browser address bar is not capable of sending a DELETE request. You can use other software such as POSTMAN  to make other HTTP requests, including DELETE and POST.   it looks like you found the delete instructions, be sure you are using your user api key (not a channel read or write api_key).  The user API key is on your profile page.

The proper response for the cleared channel is an empty JSON object, [].  The -1 indicates that the server did not complete the action you requested.

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online: jacktheripper125
17 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 252

Vinod: 164

cstapels: 96

piajola: 75

vespapierre: 63

Adarsh_Murthy: 59

Newest Members:

Nsneilotof

angieus2

goldiepw11

BinanceoSt

gnarender123@gmail.com

edenderest

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

 

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Administrators: Hans, lee