35
Views
10
Comments
Arduino IOT Cloud
Question

Hi, 

Has anyone managed to connect to Arduino IOT cloud using their API please?

I have tried it as a REST using the cliend ID and secret ID that arduino IOT cloud gives as the username and password in Out systems but it doesnt connect.

2023-04-06 11-24-23
Paulo Zacarias

Hi Joel, 

Can you please provide more details about the API so we can try it?

Is there any documentation for that API you are referring to? 

 Regards

UserImage.jpg
Joel Lister

Hi Paulo,

Thank you for responding so quickly. I am using the information from the link below:

https://docs.arduino.cc/arduino-cloud/getting-started/arduino-iot-api#api-keys--authentication

The image attached shows the response I get.  I have changed the username out for a string of * for obvious reasons.  

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Joel,

Nowhere in the documentation can I find you need to use Basic Auth? If seems you need to request an access token?

UserImage.jpg
Joel Lister

Isnt that what I have with the client Id and secret id?

2023-04-06 11-24-23
Paulo Zacarias

Hi Joel, apparently the free plan doesn't allow the creation of any API keys.

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

No, not at all. The page you referenced explains in detail what you need to do, and nowhere does it list Basic Authentication, so why you assume you need it I don't understand.

UserImage.jpg
Joel Lister

I can create them on my account, are you able to DM me and I can send you the details for it.

thanks for your help

UserImage.jpg
Joel Lister

Thanks Kilian, it was me getting confused.

What are the steps I should be following to connect to that API?

I am completely new to Outsystems

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Well, first you need to understand what the steps are in e.g. Postman (as described there), so you can map that to OutSystems. Unfortunately, I have currently too little time to dive into it.

UserImage.jpg
Joel Lister

Thanks Kilian, I will give that a go.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.