Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

18
LINES

< > BotCompany Repo | #1029542 // MS Teams Demo Bot (Messaging Endpoint)

JavaX source code (desktop) [tags: butter use-pretranspiled] - run with: x30.jar - homepage

Download Jar. Libraryless. Click here for Pure Java version (3887L/26K).

1  
!7
2  
3  
html {
4  
  printAndProgramLog("Received call: " + uri);
5  
  printAndProgramLog("params=" + struct(params));
6  
  printAndProgramLog("headers=" + struct(subBot_getHeaders()));
7  
  printAndProgramLog("files=" + getUploadFiles());
8  
  
9  
  //ret serveWithContentType("{}", "application/json");
10  
  Class nanoHTTPD = getClassInRealm(mainBot(), "main$NanoHTTPD");
11  
  Class status = getClassInRealm(mainBot(), "main$NanoHTTPD$Status");
12  
  O response = call(nanoHTTPD,
13  
    "newFixedLengthResponse",
14  
    get(status, "ACCEPTED"),
15  
    null, // no content type
16  
    "");
17  
  ret response;
18  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1029542
Snippet name: MS Teams Demo Bot (Messaging Endpoint)
Eternal ID of this version: #1029542/11
Text MD5: bbcfab59b5ac1e6a29c9d18c56ea34aa
Transpilation MD5: cdfe5df3283c7488604cbe9f3fd1bbda
Author: stefan
Category: javax / web chat bots
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-08-28 14:47:08
Source code size: 580 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 187 / 861
Version history: 10 change(s)
Referenced in: [show references]