如何通过www.requestmaker.com向ThingSpeak发送帖子?
我用这个:

POST /update HTTP/1.1
Host: api.thingspeak.com
Connection: close
X-THINGSPEAKAPIKEY: XXXXXXXXXXXXXXXX
Content-Type: application/x-www-form-urlencoded\
Content-Length: 24
field1=34&field2=1

但我得到的答复是:
HTTP/1.1 404 Not Found
Content-Type: text/html; charset=utf-8
Content-Length: 728
Connection: close
Status: 404 Not Found
X-Request-Id: 36c8113c-3671-4302-85fa-f3ecdba364dc
X-Runtime: 0.019035
X-Powered-By: Phusion Passenger 4.0.57
Date: Mon, 19 Dec 2016 02:36:42 GMT
Server: nginx/1.9.3 + Phusion Passenger 4.0.57

有什么解决办法吗?

最佳答案

确保你有正确的API密钥——通常是零,字母“O”不正确。你在写什么api端点?您可以在ThingSpeak论坛获得帮助:http://community.thingspeak.com/forum/

10-08 12:55