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

Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





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

sp_Feed sp_TopicIcon
Clearing a Private Channel using REST API
No permission to create posts
July 5, 2017
12:18 pm
Avatar
chinthakajay
New Member
Members
Forum Posts: 1
Member Since:
July 5, 2017
sp_UserOfflineSmall Offline

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?

July 5, 2017
2:08 pm
Avatar
cstapels
Moderator
Members


Moderators
Forum Posts: 228
Member Since:
March 7, 2017
sp_UserOfflineSmall Offline

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:
22 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 261

Vinod: 196

piajola: 85

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

Newest Members:

BarryMaync, ThomasRougs, DonaldGen, prince, JrGordon, Elamsweems

Administrators: Hans: 387, lee: 457