Open group.all with apikey - where to put the key?

Discussion in 'Join' started by Bednim, Dec 18, 2018.

  1. Bednim

    Bednim New Member

    Joined:
    Feb 18, 2017
    Messages:
    7
    Likes Received:
    0
    Hi guys, wanted to use group send with join/node-red and it says on join api website that group messages are available with api key only:

    deviceId – The device ID or group ID (must use API Key for groups) of the device you want to send the message to. It is mandatory that you either set this or the deviceIds parameter.

    so in my function node I put:
    "deviceId": "xxxx"
    "apikey": "xxxx"

    but that doesnt work.

    where do I put api key please?

    thank you
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    8,456
    Likes Received:
    718
    The API key is already included in the requests. You don't need to add it manually :)
     
  3. Bednim

    Bednim New Member

    Joined:
    Feb 18, 2017
    Messages:
    7
    Likes Received:
    0
    When I put:
    "deviceId": "group.all"
    or
    "deviceId": group.all

    I get errors. Both say no device to send to and in debug window it says group is not defined.

    Could you possibly share correct syntax for groups please?

    Thank you
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    8,456
    Likes Received:
    718
    Hmm, maybe I forgot to include group support in the Node-RED app, sorry about that. Can you try sending with multiple device Ids and see if that works?
     
  5. Bednim

    Bednim New Member

    Joined:
    Feb 18, 2017
    Messages:
    7
    Likes Received:
    0
    that does work indeed. not a biggie to list every device i want this to be sent to.

    thank you
     
  6. azwillnj

    azwillnj New Member

    Joined:
    Jan 2, 2018
    Messages:
    1
    Likes Received:
    0
    Was this ever resolved? I cant figure out how to send to group.all in node red either. It would be very useful to have that so I don't need to update the API key every time I change phones.
     
  7. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    8,456
    Likes Received:
    718
    Sorry not yet, but you can send by device name so you don't need to change the phone's ID :)
     
: nodered

Share This Page