Skip to content

Commit a517fc8

Browse files
committed
docs: replace links from api.slack.com to docs.slack.dev redirects
1 parent 83661b7 commit a517fc8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+964
-964
lines changed

.github/ISSUE_TEMPLATE/03_document.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ assignees: ""
1010

1111
### The page URLs
1212

13-
- https://slack.dev/python-slack-sdk/
13+
- https://docs.slack.dev/tools/python-slack-sdk/
1414

1515
### Requirements
1616

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ Whether you're building a custom app for your team, or integrating a third party
2727
The **Python Slack SDK** allows interaction with:
2828

2929
- `slack_sdk.web`: for calling the [Web API methods][api-methods]
30-
- `slack_sdk.webhook`: for utilizing the [Incoming Webhooks](https://api.slack.com/messaging/webhooks) and [`response_url`s in payloads](https://api.slack.com/interactivity/handling#message_responses)
31-
- `slack_sdk.signature`: for [verifying incoming requests from the Slack API server](https://api.slack.com/authentication/verifying-requests-from-slack)
32-
- `slack_sdk.socket_mode`: for receiving and sending messages over [Socket Mode](https://api.slack.com/socket-mode) connections
33-
- `slack_sdk.audit_logs`: for utilizing [Audit Logs APIs](https://api.slack.com/admins/audit-logs)
34-
- `slack_sdk.scim`: for utilizing [SCIM APIs](https://api.slack.com/admins/scim)
35-
- `slack_sdk.oauth`: for implementing the [Slack OAuth flow](https://api.slack.com/authentication/oauth-v2)
36-
- `slack_sdk.models`: for constructing [Block Kit](https://api.slack.com/block-kit) UI components using easy-to-use builders
30+
- `slack_sdk.webhook`: for utilizing the [Incoming Webhooks](https://docs.slack.dev/messaging/sending-messages-using-incoming-webhooks/) and [`response_url`s in payloads](https://docs.slack.dev/interactivity/handling-user-interaction/#message_responses)
31+
- `slack_sdk.signature`: for [verifying incoming requests from the Slack API server](https://docs.slack.dev/authentication/verifying-requests-from-slack/)
32+
- `slack_sdk.socket_mode`: for receiving and sending messages over [Socket Mode](https://docs.slack.dev/apis/events-api/using-socket-mode/) connections
33+
- `slack_sdk.audit_logs`: for utilizing [Audit Logs APIs](https://docs.slack.dev/admins/audit-logs-api/)
34+
- `slack_sdk.scim`: for utilizing [SCIM APIs](https://docs.slack.dev/admins/scim-api/)
35+
- `slack_sdk.oauth`: for implementing the [Slack OAuth flow](https://docs.slack.dev/authentication/installing-with-oauth/)
36+
- `slack_sdk.models`: for constructing [Block Kit](https://docs.slack.dev/block-kit/) UI components using easy-to-use builders
3737
- `slack_sdk.rtm`: for utilizing the [RTM API][rtm-docs]
3838

3939
If you want to use our [Events API][events-docs] and Interactivity features, please check the [Bolt for Python][bolt-python] library. Details on the Tokens and Authentication can be found in our [Auth Guide](https://docs.slack.dev/tools/python-slack-sdk/installation/).
@@ -293,9 +293,9 @@ helpful and collaborative way.
293293
<!-- Markdown links -->
294294

295295
[slackclientv1]: https://github.com/slackapi/python-slackclient/tree/v1
296-
[api-methods]: https://api.slack.com/methods
297-
[rtm-docs]: https://api.slack.com/rtm
298-
[events-docs]: https://api.slack.com/events-api
296+
[api-methods]: https://docs.slack.dev/reference/methods
297+
[rtm-docs]: https://docs.slack.dev/legacy/legacy-rtm-api/
298+
[events-docs]: https://docs.slack.dev/apis/events-api/
299299
[bolt-python]: https://github.com/slackapi/bolt-python
300300
[pypi]: https://pypi.org/
301301
[gh-issues]: https://github.com/slackapi/python-slack-sdk/issues

integration_tests/web/test_conversations_connect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class TestWebClient(unittest.TestCase):
2222
one for the inviting workspace(list and send invites) another for the recipient
2323
workspace (accept and approve) sent invites. Before being able to run this test suite,
2424
we also need to have manually created a slack connect shared channel and added
25-
these two bots as members first. See: https://api.slack.com/apis/connect
25+
these two bots as members first. See: https://docs.slack.dev/apis/slack-connect/
2626
2727
In addition to conversations.connect:* scopes, your sender bot token should have channels:manage scopes.
2828
"""

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ classifiers = [
4040

4141

4242
[project.urls]
43-
Documentation = "https://slack.dev/python-slack-sdk/"
43+
Documentation = "https://docs.slack.dev/tools/python-slack-sdk/"
4444

4545
[tool.setuptools.packages.find]
4646
include = ["slack*", "slack_sdk*"]

slack/deprecation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ def show_message(old: str, new: str) -> None:
99

1010
message = (
1111
f"{old} package is deprecated. Please use {new} package instead. "
12-
"For more info, go to https://slack.dev/python-slack-sdk/v3-migration/"
12+
"For more info, go to https://docs.slack.dev/tools/python-slack-sdk/v3-migration/"
1313
)
1414
warnings.warn(message)

slack/signature/verifier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def __init__(self, signing_secret: str, clock: Clock = Clock()):
1717
Slack signs its requests using a secret that's unique to your app.
1818
With the help of signing secrets, your app can more confidently verify
1919
whether requests from us are authentic.
20-
https://api.slack.com/authentication/verifying-requests-from-slack
20+
https://docs.slack.dev/authentication/verifying-requests-from-slack/
2121
"""
2222
self.signing_secret = signing_secret
2323
self.clock = clock

slack/web/base_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ def validate_slack_signature(*, signing_secret: str, data: str, timestamp: str,
472472
header. The signature is created by combining the signing secret with the
473473
body of the request we're sending using a standard HMAC-SHA256 keyed hash.
474474
475-
https://api.slack.com/docs/verifying-requests-from-slack#how_to_make_a_request_signature_in_4_easy_steps__an_overview
475+
https://docs.slack.dev/authentication/verifying-requests-from-slack/
476476
477477
Args:
478478
signing_secret: Your application's signing secret, available in the

slack/web/deprecation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import warnings
33

4-
# https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api
4+
# https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/
55
deprecated_method_prefixes_2020_01 = [
66
"channels.",
77
"groups.",
@@ -25,6 +25,6 @@ def show_2020_01_deprecation(method_name: str):
2525
message = (
2626
f"{method_name} is deprecated. Please use the Conversations API instead. "
2727
"For more info, go to "
28-
"https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api"
28+
"https://docs.slack.dev/changelog/2020-01-deprecating-antecedents-to-the-conversations-api/"
2929
)
3030
warnings.warn(message)

slack_sdk/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
* The SDK website: https://slack.dev/python-slack-sdk/
2+
* The SDK website: https://docs.slack.dev/tools/python-slack-sdk
33
* PyPI package: https://pypi.org/project/slack-sdk/
44
55
Here is the list of key modules in this SDK:

slack_sdk/audit_logs/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Audit Logs API is a set of APIs for monitoring what’s happening in your Enterprise Grid organization.
22
3-
Refer to https://slack.dev/python-slack-sdk/audit-logs/ for details.
3+
Refer to https://docs.slack.dev/tools/python-slack-sdk/audit-logs for details.
44
"""
55
from .v1.client import AuditLogsClient
66
from .v1.response import AuditLogsResponse

0 commit comments

Comments
 (0)