Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

Api Request not working


hoschi_66

Question

Hello
I have a question about the Api request in software version 4.620

I didn't update my HC2 for a long time

Somehow the username and the Paosswirt are not correctly transmitted, so it is not possible to send an Api request here.

something has been changed here

how can I make a request here


not possible --> usr:[email protected]/api/devices  

so what can i do ? any Ideas

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

I am not sure if this has anything to do with the version of the HC firmware, but the corrrect way to pass basic credentials with any HTTP request is to add an authorization header and leave the url unchanged. How to do this depends on the client doing the call. For example, given the username = "[email protected]" and the password = "secret1", you could execute this command from any Linux terminal:

Please login or register to see this code.

 

Which results in the header "Authorization" with value "Basic bXkuZW1haWxAZXhhbXBsZS5jb206c2VjcmV0MQ==" (that is encoded username and password) being added to the request.

 

Or from Fibaro Lua script you would do:

Please login or register to see this code.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...