From b60b81e59df0ccbc4cbe8e0c10633114d5f7022f Mon Sep 17 00:00:00 2001 From: iwaohig <50971223+iwaohig@users.noreply.github.com> Date: Sun, 10 Nov 2024 17:36:39 +0900 Subject: [PATCH 1/7] Add files via upload --- .../apiDefinition.swagger.json | 76 +++++++++++++++++++ .../openapidefinition.json | 11 +++ .../LINE WORKS Incoming Webhook/readme.md | 18 +++++ 3 files changed, 105 insertions(+) create mode 100644 independent-publisher-connectors/LINE WORKS Incoming Webhook/apiDefinition.swagger.json create mode 100644 independent-publisher-connectors/LINE WORKS Incoming Webhook/openapidefinition.json create mode 100644 independent-publisher-connectors/LINE WORKS Incoming Webhook/readme.md diff --git a/independent-publisher-connectors/LINE WORKS Incoming Webhook/apiDefinition.swagger.json b/independent-publisher-connectors/LINE WORKS Incoming Webhook/apiDefinition.swagger.json new file mode 100644 index 0000000000..3f5e588d8b --- /dev/null +++ b/independent-publisher-connectors/LINE WORKS Incoming Webhook/apiDefinition.swagger.json @@ -0,0 +1,76 @@ +swagger: '2.0' +info: + title: LINE WORKS Incoming Webhook + description: >- + This connector allows you to send messages to LINE WORKS chat rooms through + the LINE WORKS Incoming Webhook app. + version: '1.0' +host: webhook.worksmobile.com +basePath: / +schemes: + - https +consumes: + - application/json +produces: + - application/json +paths: + /message/{webhookId}: + post: + summary: LINE WORKS Incoming Webhook + operationId: LWwebhook + parameters: + - name: webhookId + in: path + required: true + type: string + description: Enter the ID found at the end of the Webhook URL. + - in: body + name: body + required: true + schema: + type: object + properties: + title: + type: string + description: >- + Message title. Optional. If not specified, webhook name will + be used. + body: + type: object + required: + - text + properties: + text: + type: string + description: Message text. Required. + button: + type: object + required: + - label + - url + properties: + label: + type: string + description: >- + Button label. Optional. To use the button, specify both + the label and URL. + url: + type: string + description: >- + Button URL. Optional. To use the button, specify both the + label and URL. + responses: + '200': + description: success + '400': + description: BadRequest + '429': + description: Too Many Requests + default: + description: error occurred +definitions: {} +parameters: {} +responses: {} +securityDefinitions: {} +security: [] +tags: [] diff --git a/independent-publisher-connectors/LINE WORKS Incoming Webhook/openapidefinition.json b/independent-publisher-connectors/LINE WORKS Incoming Webhook/openapidefinition.json new file mode 100644 index 0000000000..55c5090202 --- /dev/null +++ b/independent-publisher-connectors/LINE WORKS Incoming Webhook/openapidefinition.json @@ -0,0 +1,11 @@ +{ + "properties": { + "connectionParameters": {}, + "iconBrandColor": "#FFFFFF", + "capabilities": [ + "actions" + ], + "publisher": "iwaohig", + "stackOwner": "LINE WORKS corp." + } +} \ No newline at end of file diff --git a/independent-publisher-connectors/LINE WORKS Incoming Webhook/readme.md b/independent-publisher-connectors/LINE WORKS Incoming Webhook/readme.md new file mode 100644 index 0000000000..a6254ca069 --- /dev/null +++ b/independent-publisher-connectors/LINE WORKS Incoming Webhook/readme.md @@ -0,0 +1,18 @@ +## LINE WORKS Incoming Webhook Connector + +This connector allows you to send messages to LINE WORKS chat rooms through the LINE WORKS Incoming Webhook app. + +## Publisher : iwaohig + +## Prerequisites + +LINE WORKS Incoming Webhook App + +https://developers.worksmobile.com/jp/docs/webhook + +## Supported Operations +The connector supports the following operations: +* `Send Message To LINE WORKS chat rooms through the LINE WORKS Incoming Webhook app. + +## Known Issues and Limitations +N/A \ No newline at end of file From 408e72891f2ce0a7090f36a5bad8dfabae190a6b Mon Sep 17 00:00:00 2001 From: iwaohig <50971223+iwaohig@users.noreply.github.com> Date: Fri, 15 Nov 2024 06:39:00 +0900 Subject: [PATCH 2/7] Update openapidefinition.json --- .../LINE WORKS Incoming Webhook/openapidefinition.json | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/independent-publisher-connectors/LINE WORKS Incoming Webhook/openapidefinition.json b/independent-publisher-connectors/LINE WORKS Incoming Webhook/openapidefinition.json index 55c5090202..295a5694cc 100644 --- a/independent-publisher-connectors/LINE WORKS Incoming Webhook/openapidefinition.json +++ b/independent-publisher-connectors/LINE WORKS Incoming Webhook/openapidefinition.json @@ -1,11 +1,9 @@ { "properties": { "connectionParameters": {}, - "iconBrandColor": "#FFFFFF", - "capabilities": [ - "actions" - ], + "iconBrandColor": "#da3b01", + "capabilities": [], "publisher": "iwaohig", "stackOwner": "LINE WORKS corp." } -} \ No newline at end of file +} From 2aee5328bfc5fc2e04850ae87c4f493d23fa09ca Mon Sep 17 00:00:00 2001 From: iwaohig <50971223+iwaohig@users.noreply.github.com> Date: Fri, 15 Nov 2024 07:15:56 +0900 Subject: [PATCH 3/7] Update readme.md --- .../LINE WORKS Incoming Webhook/readme.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/independent-publisher-connectors/LINE WORKS Incoming Webhook/readme.md b/independent-publisher-connectors/LINE WORKS Incoming Webhook/readme.md index a6254ca069..4103cb8034 100644 --- a/independent-publisher-connectors/LINE WORKS Incoming Webhook/readme.md +++ b/independent-publisher-connectors/LINE WORKS Incoming Webhook/readme.md @@ -2,17 +2,21 @@ This connector allows you to send messages to LINE WORKS chat rooms through the LINE WORKS Incoming Webhook app. +You can send a message with a title and body, and optionally include a link button with a specified URL. + ## Publisher : iwaohig ## Prerequisites -LINE WORKS Incoming Webhook App +Before using this connector, ensure that the LINE WORKS Incoming Webhook App is installed in your LINE WORKS tenant. For detailed installation instructions, please refer to the documentation at the following URL: https://developers.worksmobile.com/jp/docs/webhook +## Obtaining Credentials + +This connector does not require authentication. Identification is done through the webhookId, which is specified in the webhook URL. + ## Supported Operations -The connector supports the following operations: -* `Send Message To LINE WORKS chat rooms through the LINE WORKS Incoming Webhook app. +This connector supports the following operation: -## Known Issues and Limitations -N/A \ No newline at end of file +Send Message: Sends a message to LINE WORKS chat rooms through the LINE WORKS Incoming Webhook app. This operation uses the specified webhookId to identify the target chat room. From 5b52cec07d11144f8006aa46cc3bcdbbd01b8707 Mon Sep 17 00:00:00 2001 From: iwaohig <50971223+iwaohig@users.noreply.github.com> Date: Fri, 15 Nov 2024 08:52:52 +0900 Subject: [PATCH 4/7] Create apiProperties.json --- .../LINE WORKS Incoming Webhook/apiProperties.json | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 independent-publisher-connectors/LINE WORKS Incoming Webhook/apiProperties.json diff --git a/independent-publisher-connectors/LINE WORKS Incoming Webhook/apiProperties.json b/independent-publisher-connectors/LINE WORKS Incoming Webhook/apiProperties.json new file mode 100644 index 0000000000..26f206b403 --- /dev/null +++ b/independent-publisher-connectors/LINE WORKS Incoming Webhook/apiProperties.json @@ -0,0 +1,9 @@ +{ + "properties": { + "connectionParameters": {}, + "iconBrandColor": "#da3b01", + "capabilities": [], + "publisher": "iwaohig", + "stackOwner": "LINE WORKS corp." + } +} From 786b4ee83d74e086cf0d013c6eb80361add26070 Mon Sep 17 00:00:00 2001 From: iwaohig <50971223+iwaohig@users.noreply.github.com> Date: Fri, 15 Nov 2024 08:53:10 +0900 Subject: [PATCH 5/7] Delete independent-publisher-connectors/LINE WORKS Incoming Webhook/openapidefinition.json --- .../LINE WORKS Incoming Webhook/openapidefinition.json | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 independent-publisher-connectors/LINE WORKS Incoming Webhook/openapidefinition.json diff --git a/independent-publisher-connectors/LINE WORKS Incoming Webhook/openapidefinition.json b/independent-publisher-connectors/LINE WORKS Incoming Webhook/openapidefinition.json deleted file mode 100644 index 295a5694cc..0000000000 --- a/independent-publisher-connectors/LINE WORKS Incoming Webhook/openapidefinition.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "properties": { - "connectionParameters": {}, - "iconBrandColor": "#da3b01", - "capabilities": [], - "publisher": "iwaohig", - "stackOwner": "LINE WORKS corp." - } -} From 0137919fafc7a732726377c2de907715bcf0607d Mon Sep 17 00:00:00 2001 From: iwaohig <50971223+iwaohig@users.noreply.github.com> Date: Wed, 20 Nov 2024 13:32:22 +0900 Subject: [PATCH 6/7] Update readme.md --- .../LINE WORKS Incoming Webhook/readme.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/independent-publisher-connectors/LINE WORKS Incoming Webhook/readme.md b/independent-publisher-connectors/LINE WORKS Incoming Webhook/readme.md index 4103cb8034..c271191bc1 100644 --- a/independent-publisher-connectors/LINE WORKS Incoming Webhook/readme.md +++ b/independent-publisher-connectors/LINE WORKS Incoming Webhook/readme.md @@ -20,3 +20,6 @@ This connector does not require authentication. Identification is done through t This connector supports the following operation: Send Message: Sends a message to LINE WORKS chat rooms through the LINE WORKS Incoming Webhook app. This operation uses the specified webhookId to identify the target chat room. + +## Known Issues and Limitations +N/A From 0ef0c32b5f77fbea27f9970ccc276bd5111d2830 Mon Sep 17 00:00:00 2001 From: iwaohig <50971223+iwaohig@users.noreply.github.com> Date: Wed, 20 Nov 2024 13:41:40 +0900 Subject: [PATCH 7/7] Update apiDefinition.swagger.json --- .../apiDefinition.swagger.json | 175 ++++++++++-------- 1 file changed, 99 insertions(+), 76 deletions(-) diff --git a/independent-publisher-connectors/LINE WORKS Incoming Webhook/apiDefinition.swagger.json b/independent-publisher-connectors/LINE WORKS Incoming Webhook/apiDefinition.swagger.json index 3f5e588d8b..d770ef5af0 100644 --- a/independent-publisher-connectors/LINE WORKS Incoming Webhook/apiDefinition.swagger.json +++ b/independent-publisher-connectors/LINE WORKS Incoming Webhook/apiDefinition.swagger.json @@ -1,76 +1,99 @@ -swagger: '2.0' -info: - title: LINE WORKS Incoming Webhook - description: >- - This connector allows you to send messages to LINE WORKS chat rooms through - the LINE WORKS Incoming Webhook app. - version: '1.0' -host: webhook.worksmobile.com -basePath: / -schemes: - - https -consumes: - - application/json -produces: - - application/json -paths: - /message/{webhookId}: - post: - summary: LINE WORKS Incoming Webhook - operationId: LWwebhook - parameters: - - name: webhookId - in: path - required: true - type: string - description: Enter the ID found at the end of the Webhook URL. - - in: body - name: body - required: true - schema: - type: object - properties: - title: - type: string - description: >- - Message title. Optional. If not specified, webhook name will - be used. - body: - type: object - required: - - text - properties: - text: - type: string - description: Message text. Required. - button: - type: object - required: - - label - - url - properties: - label: - type: string - description: >- - Button label. Optional. To use the button, specify both - the label and URL. - url: - type: string - description: >- - Button URL. Optional. To use the button, specify both the - label and URL. - responses: - '200': - description: success - '400': - description: BadRequest - '429': - description: Too Many Requests - default: - description: error occurred -definitions: {} -parameters: {} -responses: {} -securityDefinitions: {} -security: [] -tags: [] +{ + "swagger": "2.0", + "info": { + "title": "LINE WORKS Incoming Webhook", + "description": "This is a custom connector for LINE WORKS Incoming Webhook", + "version": "1.0" + }, + "host": "webhook.worksmobile.com", + "basePath": "/", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/message/{webhookId}": { + "post": { + "summary": "LINE WORKS Incoming Webhook", + "operationId": "LWwebhook", + "parameters": [ + { + "name": "webhookId", + "in": "path", + "required": true, + "type": "string", + "description": "Enter the ID found at the end of the Webhook URL." + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "title": { + "type": "string", + "description": "Optional. If not specified, the webhook name will be used as the title." + }, + "body": { + "type": "object", + "required": [ + "text" + ], + "properties": { + "text": { + "type": "string", + "description": "Required. Message text." + } + } + }, + "button": { + "type": "object", + "required": [ + "label", + "url" + ], + "properties": { + "label": { + "type": "string", + "description": "To use the button, both 'label' and 'url' must be specified. If either is missing, the button will not be displayed." + }, + "url": { + "type": "string", + "description": "To use the button, both 'label' and 'url' must be specified. If either is missing, the button will not be displayed." + } + } + } + } + } + } + ], + "responses": { + "200": { + "description": "success" + }, + "400": { + "description": "BadRequest" + }, + "429": { + "description": "Too Many Requests" + }, + "default": { + "description": "error occurred" + } + } + } + } + }, + "definitions": {}, + "parameters": {}, + "responses": {}, + "securityDefinitions": {}, + "security": [], + "tags": [] +}