@adobe/spacecat-shared-rum-api-client 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.md +12 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-rum-api-client-v1.4.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v1.4.0...@adobe/spacecat-shared-rum-api-client-v1.4.1) (2024-01-26)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* add missing type declaration for SLACK_TARGETS ([#113](https://github.com/adobe/spacecat-shared/issues/113)) ([1658513](https://github.com/adobe/spacecat-shared/commit/1658513bc29b618f35ce31dfff88d26110525c7f))
|
|
7
|
+
|
|
1
8
|
# [@adobe/spacecat-shared-rum-api-client-v1.4.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v1.3.6...@adobe/spacecat-shared-rum-api-client-v1.4.0) (2024-01-24)
|
|
2
9
|
|
|
3
10
|
|
package/README.md
CHANGED
|
@@ -12,6 +12,18 @@ npm install @adobe/spacecat-shared-rum-api-client
|
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
14
14
|
|
|
15
|
+
### Configuring Tokens
|
|
16
|
+
|
|
17
|
+
To configure tokens for your application, follow these steps:
|
|
18
|
+
|
|
19
|
+
1. Visit the main page of your Slack app at [https://api.slack.com/apps](https://api.slack.com/apps).
|
|
20
|
+
|
|
21
|
+
2. Navigate to the "OAuth & Permissions" page and locate the "Scope" section. Here, you can add scopes to your Slack app based on the specific methods you intend to use from the Slack API. For example, if your app requires file upload functionality, ensure you add the `files:read` and `files:write` scopes.
|
|
22
|
+
|
|
23
|
+
3. Locate your Slack bot token under the "Bot User OAuth Token" section on the same page. You will need to provide this token to the `SlackClient` in your application.
|
|
24
|
+
|
|
25
|
+
4. For information on the scopes needed for each Slack API method, refer to the [documentation](https://api.slack.com/methods). The required scopes for each API method are listed in the "Bot tokens" row. As an example, to use the `postMessage` API method, the required scope is `chat:write`, as documented in [https://api.slack.com/methods/chat.postMessage](https://api.slack.com/methods/chat.postMessage).
|
|
26
|
+
|
|
15
27
|
### Creating and instance from Helix UniversalContext
|
|
16
28
|
|
|
17
29
|
```js
|