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

[Solved] VD http POST


Question

Posted (edited)

Hello,

I try to build a VD that is required to perform a POST request and read results. Is there any example? I like something simple to understand the mechanism of POST on VDs.

Help please!!!

 Edit: I just want a HTTP POST without authentication or send any content. 

Edited by korniza

9 answers to this question

Recommended Posts

  • 0
Posted

Please login or register to see this code.

 

1 minute ago, korniza said:

any quick example please? :)

I am waiting for this, lazy-boy! :D 

  • 0
Posted

Please login or register to see this code.

 

  • 0
  • Inquirer
  • Posted

    @10der I try to use the following api call as a button on VD.  

    Please login or register to see this link.

     

    I think if someone help, I will move forward to a dream....

    • 0
    Posted
    Quote

    POST requests need to set the header: content-type: application/json

     

    You can't.

    Fibaro VD doesn't support custom headers. ¯\_(ツ)_/¯

    • 0
  • Inquirer
  • Posted
    1 minute ago, 10der said:

     

    You can't.

    Fibaro VD doesn't support custom headers. ¯\_(ツ)_/¯

    Understand. can be done from scene?

    • 0
    Posted
    Just now, korniza said:

    Understand. can be done from scene?

    yes!

    • 0
  • Inquirer
  • Posted

    any quick example please? :)

    • 0
  • Inquirer
  • Posted

    YAHoooooooooooooooooo! I get results!!!

    I'm on track! I have a huge project for weekend!!!

    • 0
    Posted

    Hello,

     

    You've probably fixed this already, but if not here is where I have done this

    Please login or register to see this link.

     

    You can see here I am calling this method and passing in the headers I needed here

    Please login or register to see this link.

    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...