[Python] Synology Chat API python

Discussão em 'Python' iniciado por Stack, Abril 6, 2025.

  1. Stack

    Stack Membro Participativo

    I would like to use the chat API on Synology.

    I already know the composition of the web link to act on the chat and send a message. This link works when I use it on a web browser:

    http://"IP":"PORT"/webapi/entry.cgi?api=SYNO.Chat.External&method=incoming&version=2&token="TOKENKEY"&payload={"text":"Test message.\nDavid fait un test API"}


    I receive this text: Test message.David fait un test API

    Now I would like to use it in python but I can only use the 'urllib' & ‘json’ library.

    Can you tell me how I can run on a 'urllib' query with the value behind 'text' that can be changed dynamically?.

    Thank you.

    Continue reading...

Compartilhe esta Página