I am trying to use the adafruit api to access my data.
Currently when I try and access I get the following message:
{"error":"not found - API documentation can be found at https://io.adafruit.com/api/docs"}
I think this is because I haven't added the key (as I get the same message if you don't use a key on the adafruit example page) but I don't know where to add it.
Currently, I just have this in my controller:
def index
@tests = HTTParty.get('https://io.adafruit.com/api/v2/username/myfeed/test/data')
end
Thanks in advance x
Please change your code with