Publishing data

Publishing your data is as easy as making a GET request!

The URL is as follows:


			http://dweet.me:3333/publish/yoink/for/mything?variable=value
			

An example with curl:


			curl 'http://dweet.me:3333/publish/yoink/for/demoESP32?tempreading=25.7&name=home'
			
And then you get back something like this:

				{
				  "id": 1,
				  "topic": "demoESP32",
				  "timestamp": "2022-10-26T11:21:11Z",
				  "content": {
				    "name": "home",
				    "tempreading": 25.7
				  }
				}
			

Retrieving data

Retrieving your data is also as easy as making a GET request!

The URL is as follows:


			http://dweet.me:3333/get/latest/yoink/from/demoESP32
			

An example with curl:


			curl 'http://dweet.me:3333/get/latest/yoink/from/demoESP32'
			
And then you get back the same thing we saw before:

				{
				  "id": 1,
				  "topic": "demoESP32",
				  "timestamp": "2022-10-26T11:21:11Z",
				  "content": {
				    "name": "home",
				    "tempreading": 25.7
				  }
				}
			

attribution https://gitlab[dot]com/insanitywholesale/datayoinker