0

Did the rest API change?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Did the rest API change?

by sm on Wed Jan 09, 2019 5:34 pm

I am using FilemakerPro to insert the following URL:

Code: Select all | TOGGLE FULL SIZE
https://io.adafruit.com/api/groups/times/send.json?x-aio-key=XXXXXXX&times=DataGoesHere


Which used to work just fine for a while.
Now all I get is this error:

{"error":"not found - that is an invalid URL, please check the API documentation at https://io.adafruit.com/api/docs to make sure your URL is correct"}


Was there a change to the Rest API? Please note that I can not cURL. I am stuck in an older version of FileMaker that only allows to insert a URL.

Any help is appreciated.
--Michael Krug

sm
 
Posts: 7
Joined: Wed Sep 14, 2016 1:56 am

Re: Did the rest API change?

by brubell on Mon Jan 14, 2019 12:07 pm

That endpoint was removed, the technical description for why is below:
Unfortunately, we had to remove that single endpoint unexpectedly. This was due to a potential for the endpoint to be improperly used as an attack vector that we discovered in our testing. There was no actual security incident, but we didn't want to leave the endpoint live any longer. This didn't give us any time to announce a sun-setting of this endpoint like we would in a normal scenario. The api v1 is still available, other than this one HTTP GET request with the ability to save data.

I apologize that we weren't able to alert you beforehand.


There is more discussion about this API change in this thread => viewtopic.php?f=56&t=145499

brubell
 
Posts: 283
Joined: Fri Jul 17, 2015 10:33 pm

Re: Did the rest API change?

by sm on Mon Jan 14, 2019 8:32 pm

This is sad that this is no longer available.
I was using it with an older version of FileMaker that does not allow me to POST using curl. (I can can only GET).
Or at least, I have not figured out how to POST.

Is there any other way to send data to IO using only GET or a web browser's address field?

sm
 
Posts: 7
Joined: Wed Sep 14, 2016 1:56 am

Re: Did the rest API change?

by brubell on Tue Jan 15, 2019 2:52 pm

I don't have a lot of experience with filemaker, it looks like you can do HTTP POST with it: https://support.filemaker.com/s/article ... uage=en_US

brubell
 
Posts: 283
Joined: Fri Jul 17, 2015 10:33 pm

Please be positive and constructive with your questions and comments.