Coder Social home page Coder Social logo

webhookgatewaysystem's Introduction

(Target: .NET Core 2.2)

Avviare il client (su windows, mac o linux) con:

dotnet WebHookAgent.dll https://webhookgateway.azurewebsites.net/pusher -a (riceve i push destinati a tutti)

oppure con

dotnet WebHookAgent.dll https://webhookgateway.azurewebsites.net/pusher -g <gruppo1> -g <gruppo2> -g <gruppo3> (riceve i push destinati ai gruppi indicati)

Link a ultima versione del client compilata

HTTP REST-API

POST https://webhookgateway.azurewebsites.net/api/webhook/pushpayload

Content-Type: application/json

{
  "ContentType":"<ShellExecute/Run>",
  "Content":"<eseguibile, eventualmente con path>",
  "Arguments": "<parametri>",
  "WorkingDirectory":"<directory di lavoro>",
  "Groups":"<se definito e non vuoto, lista separata da virgole dei gruppi destinatari dell'invio push>"
}

Esempio #1 (fa aprire il browser sul sito di Repubblica a tutti i client collegati):

{
  "ContentType":"ShellExecute",
  "Content":"http://www.repubblica.it"
}

Esempio #2 (lancia Notepad sui client, Windows in questo caso, collegati dei gruppi "Gruppo_1" e "Gruppo_2"):

{
  "ContentType":"ShellExecute",
  "Content":"notepad.exe",
  "Arguments":"c:\\directory-demo\\esempio.txt",
  "Groups":"Gruppo_1,Gruppo_2"
}

Esempio #3 (lancia Stickies sui client collegati, MacOS in questo caso, del gruppo "mac"):

{
  "ContentType":"Run",
  "Content":"/Applications/Stickies.app/Contents/MacOS/Stickies",
  "Groups":"mac"
}

webhookgatewaysystem's People

Contributors

maiorfi avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.