diff --git a/docs/api-docs/slack_sdk/index.html b/docs/api-docs/slack_sdk/index.html index 97f92090a..4e9600044 100644 --- a/docs/api-docs/slack_sdk/index.html +++ b/docs/api-docs/slack_sdk/index.html @@ -197,7 +197,7 @@

Classes

class WebClient -(token: Optional[str] = None, base_url: str = 'https://www.slack.com/api/', timeout: int = 30, ssl: Optional[ssl.SSLContext] = None, proxy: Optional[str] = None, headers: Optional[dict] = None, user_agent_prefix: Optional[str] = None, user_agent_suffix: Optional[str] = None, team_id: Optional[str] = None, logger: Optional[logging.Logger] = None, retry_handlers: Optional[List[RetryHandler]] = None) +(token: Optional[str] = None, base_url: str = 'https://slack.com/api/', timeout: int = 30, ssl: Optional[ssl.SSLContext] = None, proxy: Optional[str] = None, headers: Optional[dict] = None, user_agent_prefix: Optional[str] = None, user_agent_suffix: Optional[str] = None, team_id: Optional[str] = None, logger: Optional[logging.Logger] = None, retry_handlers: Optional[List[RetryHandler]] = None)

A WebClient allows apps to communicate with the Slack Platform's Web API.

@@ -212,7 +212,7 @@

Attributes

A string specifying an xoxp-* or xoxb-* token.
base_url : str
A string representing the Slack API base URL. -Default is 'https://www.slack.com/api/'
+Default is 'https://slack.com/api/'
timeout : int
The maximum number of seconds the client will wait to connect and receive a response from Slack. @@ -276,7 +276,7 @@

Note

Attributes: token (str): A string specifying an `xoxp-*` or `xoxb-*` token. base_url (str): A string representing the Slack API base URL. - Default is `'https://www.slack.com/api/'` + Default is `'https://slack.com/api/'` timeout (int): The maximum number of seconds the client will wait to connect and receive a response from Slack. Default is 30 seconds. diff --git a/docs/api-docs/slack_sdk/oauth/installation_store/file/index.html b/docs/api-docs/slack_sdk/oauth/installation_store/file/index.html index 2ae413703..0c6946209 100644 --- a/docs/api-docs/slack_sdk/oauth/installation_store/file/index.html +++ b/docs/api-docs/slack_sdk/oauth/installation_store/file/index.html @@ -291,7 +291,7 @@

Classes

class FileInstallationStore -(*, base_dir: str = '/Users/kazuhiro.sera/.bolt-app-installation', historical_data_enabled: bool = True, client_id: Optional[str] = None, logger: logging.Logger = <Logger slack_sdk.oauth.installation_store.file (WARNING)>) +(*, base_dir: str = '/Users/wbergamin/.bolt-app-installation', historical_data_enabled: bool = True, client_id: Optional[str] = None, logger: logging.Logger = <Logger slack_sdk.oauth.installation_store.file (WARNING)>)

The installation store interface.

diff --git a/docs/api-docs/slack_sdk/oauth/installation_store/index.html b/docs/api-docs/slack_sdk/oauth/installation_store/index.html index 761c0921c..4fbd5ea85 100644 --- a/docs/api-docs/slack_sdk/oauth/installation_store/index.html +++ b/docs/api-docs/slack_sdk/oauth/installation_store/index.html @@ -327,7 +327,7 @@

Methods

class FileInstallationStore -(*, base_dir: str = '/Users/kazuhiro.sera/.bolt-app-installation', historical_data_enabled: bool = True, client_id: Optional[str] = None, logger: logging.Logger = <Logger slack_sdk.oauth.installation_store.file (WARNING)>) +(*, base_dir: str = '/Users/wbergamin/.bolt-app-installation', historical_data_enabled: bool = True, client_id: Optional[str] = None, logger: logging.Logger = <Logger slack_sdk.oauth.installation_store.file (WARNING)>)

The installation store interface.

diff --git a/docs/api-docs/slack_sdk/oauth/state_store/file/index.html b/docs/api-docs/slack_sdk/oauth/state_store/file/index.html index 416e6d781..9c0f6fcb0 100644 --- a/docs/api-docs/slack_sdk/oauth/state_store/file/index.html +++ b/docs/api-docs/slack_sdk/oauth/state_store/file/index.html @@ -110,7 +110,7 @@

Classes

class FileOAuthStateStore -(*, expiration_seconds: int, base_dir: str = '/Users/kazuhiro.sera/.bolt-app-oauth-state', client_id: Optional[str] = None, logger: logging.Logger = <Logger slack_sdk.oauth.state_store.file (WARNING)>) +(*, expiration_seconds: int, base_dir: str = '/Users/wbergamin/.bolt-app-oauth-state', client_id: Optional[str] = None, logger: logging.Logger = <Logger slack_sdk.oauth.state_store.file (WARNING)>)
diff --git a/docs/api-docs/slack_sdk/oauth/state_store/index.html b/docs/api-docs/slack_sdk/oauth/state_store/index.html index a07fae3c7..0ffc19f3f 100644 --- a/docs/api-docs/slack_sdk/oauth/state_store/index.html +++ b/docs/api-docs/slack_sdk/oauth/state_store/index.html @@ -80,7 +80,7 @@

Classes

class FileOAuthStateStore -(*, expiration_seconds: int, base_dir: str = '/Users/kazuhiro.sera/.bolt-app-oauth-state', client_id: Optional[str] = None, logger: logging.Logger = <Logger slack_sdk.oauth.state_store.file (WARNING)>) +(*, expiration_seconds: int, base_dir: str = '/Users/wbergamin/.bolt-app-oauth-state', client_id: Optional[str] = None, logger: logging.Logger = <Logger slack_sdk.oauth.state_store.file (WARNING)>)
diff --git a/docs/api-docs/slack_sdk/rtm/index.html b/docs/api-docs/slack_sdk/rtm/index.html index a8e3b1673..2dee896f5 100644 --- a/docs/api-docs/slack_sdk/rtm/index.html +++ b/docs/api-docs/slack_sdk/rtm/index.html @@ -77,7 +77,7 @@

Module slack_sdk.rtm

Default is 30. base_url (str): The base url for all HTTP requests. Note: This is only used in the WebClient. - Default is "https://www.slack.com/api/". + Default is "https://slack.com/api/". connect_method (str): An string specifying if the client will connect with `rtm.connect` or `rtm.start`. Default is `rtm.connect`. @@ -619,7 +619,7 @@

Classes

class RTMClient -(*, token: str, run_async: Optional[bool] = False, auto_reconnect: Optional[bool] = True, ssl: Optional[ssl.SSLContext] = None, proxy: Optional[str] = None, timeout: Optional[int] = 30, base_url: Optional[str] = 'https://www.slack.com/api/', connect_method: Optional[str] = None, ping_interval: Optional[int] = 30, loop: Optional[asyncio.events.AbstractEventLoop] = None, headers: Optional[dict] = {}) +(*, token: str, run_async: Optional[bool] = False, auto_reconnect: Optional[bool] = True, ssl: Optional[ssl.SSLContext] = None, proxy: Optional[str] = None, timeout: Optional[int] = 30, base_url: Optional[str] = 'https://slack.com/api/', connect_method: Optional[str] = None, ping_interval: Optional[int] = 30, loop: Optional[asyncio.events.AbstractEventLoop] = None, headers: Optional[dict] = {})

An RTMClient allows apps to communicate with the Slack Platform's RTM API.

@@ -652,7 +652,7 @@

Attributes

base_url : str
The base url for all HTTP requests. Note: This is only used in the WebClient. -Default is "https://www.slack.com/api/".
+Default is "https://slack.com/api/".
connect_method : str
An string specifying if the client will connect with rtm.connect or rtm.start. @@ -732,7 +732,7 @@

Note

Default is 30. base_url (str): The base url for all HTTP requests. Note: This is only used in the WebClient. - Default is "https://www.slack.com/api/". + Default is "https://slack.com/api/". connect_method (str): An string specifying if the client will connect with `rtm.connect` or `rtm.start`. Default is `rtm.connect`. diff --git a/docs/api-docs/slack_sdk/rtm/v2/index.html b/docs/api-docs/slack_sdk/rtm/v2/index.html index 31711d361..524ca2cfb 100644 --- a/docs/api-docs/slack_sdk/rtm/v2/index.html +++ b/docs/api-docs/slack_sdk/rtm/v2/index.html @@ -44,7 +44,7 @@

Classes

class RTMClient -(*, token: Optional[str] = None, web_client: Optional[WebClient] = None, auto_reconnect_enabled: bool = True, ssl: Optional[ssl.SSLContext] = None, proxy: Optional[str] = None, timeout: int = 30, base_url: str = 'https://www.slack.com/api/', headers: Optional[dict] = None, ping_interval: int = 5, concurrency: int = 10, logger: Optional[logging.Logger] = None, on_message_listeners: Optional[List[Callable[[str], None]]] = None, on_error_listeners: Optional[List[Callable[[Exception], None]]] = None, on_close_listeners: Optional[List[Callable[[int, Optional[str]], None]]] = None, trace_enabled: bool = False, all_message_trace_enabled: bool = False, ping_pong_trace_enabled: bool = False) +(*, token: Optional[str] = None, web_client: Optional[WebClient] = None, auto_reconnect_enabled: bool = True, ssl: Optional[ssl.SSLContext] = None, proxy: Optional[str] = None, timeout: int = 30, base_url: str = 'https://slack.com/api/', headers: Optional[dict] = None, ping_interval: int = 5, concurrency: int = 10, logger: Optional[logging.Logger] = None, on_message_listeners: Optional[List[Callable[[str], None]]] = None, on_error_listeners: Optional[List[Callable[[Exception], None]]] = None, on_close_listeners: Optional[List[Callable[[int, Optional[str]], None]]] = None, trace_enabled: bool = False, all_message_trace_enabled: bool = False, ping_pong_trace_enabled: bool = False)
diff --git a/docs/api-docs/slack_sdk/rtm_v2/index.html b/docs/api-docs/slack_sdk/rtm_v2/index.html index 08037a906..28c684b8b 100644 --- a/docs/api-docs/slack_sdk/rtm_v2/index.html +++ b/docs/api-docs/slack_sdk/rtm_v2/index.html @@ -431,7 +431,7 @@

Classes

class RTMClient -(*, token: Optional[str] = None, web_client: Optional[WebClient] = None, auto_reconnect_enabled: bool = True, ssl: Optional[ssl.SSLContext] = None, proxy: Optional[str] = None, timeout: int = 30, base_url: str = 'https://www.slack.com/api/', headers: Optional[dict] = None, ping_interval: int = 5, concurrency: int = 10, logger: Optional[logging.Logger] = None, on_message_listeners: Optional[List[Callable[[str], None]]] = None, on_error_listeners: Optional[List[Callable[[Exception], None]]] = None, on_close_listeners: Optional[List[Callable[[int, Optional[str]], None]]] = None, trace_enabled: bool = False, all_message_trace_enabled: bool = False, ping_pong_trace_enabled: bool = False) +(*, token: Optional[str] = None, web_client: Optional[WebClient] = None, auto_reconnect_enabled: bool = True, ssl: Optional[ssl.SSLContext] = None, proxy: Optional[str] = None, timeout: int = 30, base_url: str = 'https://slack.com/api/', headers: Optional[dict] = None, ping_interval: int = 5, concurrency: int = 10, logger: Optional[logging.Logger] = None, on_message_listeners: Optional[List[Callable[[str], None]]] = None, on_error_listeners: Optional[List[Callable[[Exception], None]]] = None, on_close_listeners: Optional[List[Callable[[int, Optional[str]], None]]] = None, trace_enabled: bool = False, all_message_trace_enabled: bool = False, ping_pong_trace_enabled: bool = False)
diff --git a/docs/api-docs/slack_sdk/socket_mode/aiohttp/index.html b/docs/api-docs/slack_sdk/socket_mode/aiohttp/index.html index 908953c8b..086fb1d90 100644 --- a/docs/api-docs/slack_sdk/socket_mode/aiohttp/index.html +++ b/docs/api-docs/slack_sdk/socket_mode/aiohttp/index.html @@ -366,7 +366,7 @@

Module slack_sdk.socket_mode.aiohttp

f"session_id: {session_id}, " f"closed: {self.closed}, " f"stale: {self.stale}, " - f"current_session.closed: {self.current_session.closed}, " + f"current_session.closed: {self.current_session and self.current_session.closed}, " f"is_ping_pong_failing: {is_ping_pong_failing}" ")" ) @@ -842,7 +842,7 @@

Args

f"session_id: {session_id}, " f"closed: {self.closed}, " f"stale: {self.stale}, " - f"current_session.closed: {self.current_session.closed}, " + f"current_session.closed: {self.current_session and self.current_session.closed}, " f"is_ping_pong_failing: {is_ping_pong_failing}" ")" ) @@ -1228,7 +1228,7 @@

Methods

f"session_id: {session_id}, " f"closed: {self.closed}, " f"stale: {self.stale}, " - f"current_session.closed: {self.current_session.closed}, " + f"current_session.closed: {self.current_session and self.current_session.closed}, " f"is_ping_pong_failing: {is_ping_pong_failing}" ")" ) diff --git a/docs/api-docs/slack_sdk/version.html b/docs/api-docs/slack_sdk/version.html index aa13b8e98..408d60fbe 100644 --- a/docs/api-docs/slack_sdk/version.html +++ b/docs/api-docs/slack_sdk/version.html @@ -28,7 +28,7 @@

Module slack_sdk.version

Expand source code
"""Check the latest version at https://pypi.org/project/slack-sdk/"""
-__version__ = "3.27.2"
+__version__ = "3.28.0"
diff --git a/docs/api-docs/slack_sdk/web/async_base_client.html b/docs/api-docs/slack_sdk/web/async_base_client.html index e7396f580..88414529a 100644 --- a/docs/api-docs/slack_sdk/web/async_base_client.html +++ b/docs/api-docs/slack_sdk/web/async_base_client.html @@ -53,7 +53,7 @@

Module slack_sdk.web.async_base_client

class AsyncBaseClient: - BASE_URL = "https://www.slack.com/api/" + BASE_URL = "https://slack.com/api/" def __init__( self, @@ -76,7 +76,7 @@

Module slack_sdk.web.async_base_client

"""A string specifying an `xoxp-*` or `xoxb-*` token.""" self.base_url = base_url """A string representing the Slack API base URL. - Default is `'https://www.slack.com/api/'`.""" + Default is `'https://slack.com/api/'`.""" self.timeout = timeout """The maximum number of seconds the client will wait to connect and receive a response from Slack. @@ -281,7 +281,7 @@

Classes

class AsyncBaseClient -(token: Optional[str] = None, base_url: str = 'https://www.slack.com/api/', timeout: int = 30, ssl: Optional[ssl.SSLContext] = None, proxy: Optional[str] = None, session: Optional[aiohttp.client.ClientSession] = None, trust_env_in_session: bool = False, headers: Optional[dict] = None, user_agent_prefix: Optional[str] = None, user_agent_suffix: Optional[str] = None, team_id: Optional[str] = None, logger: Optional[logging.Logger] = None, retry_handlers: Optional[List[slack_sdk.http_retry.async_handler.AsyncRetryHandler]] = None) +(token: Optional[str] = None, base_url: str = 'https://slack.com/api/', timeout: int = 30, ssl: Optional[ssl.SSLContext] = None, proxy: Optional[str] = None, session: Optional[aiohttp.client.ClientSession] = None, trust_env_in_session: bool = False, headers: Optional[dict] = None, user_agent_prefix: Optional[str] = None, user_agent_suffix: Optional[str] = None, team_id: Optional[str] = None, logger: Optional[logging.Logger] = None, retry_handlers: Optional[List[slack_sdk.http_retry.async_handler.AsyncRetryHandler]] = None)
@@ -290,7 +290,7 @@

Classes

Expand source code
class AsyncBaseClient:
-    BASE_URL = "https://www.slack.com/api/"
+    BASE_URL = "https://slack.com/api/"
 
     def __init__(
         self,
@@ -313,7 +313,7 @@ 

Classes

"""A string specifying an `xoxp-*` or `xoxb-*` token.""" self.base_url = base_url """A string representing the Slack API base URL. - Default is `'https://www.slack.com/api/'`.""" + Default is `'https://slack.com/api/'`.""" self.timeout = timeout """The maximum number of seconds the client will wait to connect and receive a response from Slack. @@ -522,7 +522,7 @@

Instance variables

var base_url

A string representing the Slack API base URL. -Default is 'https://www.slack.com/api/'.

+Default is 'https://slack.com/api/'.

var headers
diff --git a/docs/api-docs/slack_sdk/web/async_client.html b/docs/api-docs/slack_sdk/web/async_client.html index 25af8391d..b83f63ddb 100644 --- a/docs/api-docs/slack_sdk/web/async_client.html +++ b/docs/api-docs/slack_sdk/web/async_client.html @@ -74,7 +74,7 @@

Module slack_sdk.web.async_client

Attributes: token (str): A string specifying an `xoxp-*` or `xoxb-*` token. base_url (str): A string representing the Slack API base URL. - Default is `'https://www.slack.com/api/'` + Default is `'https://slack.com/api/'` timeout (int): The maximum number of seconds the client will wait to connect and receive a response from Slack. Default is 30 seconds. @@ -5163,7 +5163,7 @@

Classes

class AsyncWebClient -(token: Optional[str] = None, base_url: str = 'https://www.slack.com/api/', timeout: int = 30, ssl: Optional[ssl.SSLContext] = None, proxy: Optional[str] = None, session: Optional[aiohttp.client.ClientSession] = None, trust_env_in_session: bool = False, headers: Optional[dict] = None, user_agent_prefix: Optional[str] = None, user_agent_suffix: Optional[str] = None, team_id: Optional[str] = None, logger: Optional[logging.Logger] = None, retry_handlers: Optional[List[slack_sdk.http_retry.async_handler.AsyncRetryHandler]] = None) +(token: Optional[str] = None, base_url: str = 'https://slack.com/api/', timeout: int = 30, ssl: Optional[ssl.SSLContext] = None, proxy: Optional[str] = None, session: Optional[aiohttp.client.ClientSession] = None, trust_env_in_session: bool = False, headers: Optional[dict] = None, user_agent_prefix: Optional[str] = None, user_agent_suffix: Optional[str] = None, team_id: Optional[str] = None, logger: Optional[logging.Logger] = None, retry_handlers: Optional[List[slack_sdk.http_retry.async_handler.AsyncRetryHandler]] = None)

A WebClient allows apps to communicate with the Slack Platform's Web API.

@@ -5178,7 +5178,7 @@

Attributes

A string specifying an xoxp-* or xoxb-* token.
base_url : str
A string representing the Slack API base URL. -Default is 'https://www.slack.com/api/'
+Default is 'https://slack.com/api/'
timeout : int
The maximum number of seconds the client will wait to connect and receive a response from Slack. @@ -5242,7 +5242,7 @@

Note

Attributes: token (str): A string specifying an `xoxp-*` or `xoxb-*` token. base_url (str): A string representing the Slack API base URL. - Default is `'https://www.slack.com/api/'` + Default is `'https://slack.com/api/'` timeout (int): The maximum number of seconds the client will wait to connect and receive a response from Slack. Default is 30 seconds. diff --git a/docs/api-docs/slack_sdk/web/base_client.html b/docs/api-docs/slack_sdk/web/base_client.html index 1e64dcaa0..43186df86 100644 --- a/docs/api-docs/slack_sdk/web/base_client.html +++ b/docs/api-docs/slack_sdk/web/base_client.html @@ -69,7 +69,7 @@

Module slack_sdk.web.base_client

class BaseClient: - BASE_URL = "https://www.slack.com/api/" + BASE_URL = "https://slack.com/api/" def __init__( self, @@ -90,7 +90,7 @@

Module slack_sdk.web.base_client

"""A string specifying an `xoxp-*` or `xoxb-*` token.""" self.base_url = base_url """A string representing the Slack API base URL. - Default is `'https://www.slack.com/api/'`.""" + Default is `'https://slack.com/api/'`.""" self.timeout = timeout """The maximum number of seconds the client will wait to connect and receive a response from Slack. @@ -254,7 +254,7 @@

Module slack_sdk.web.base_client

Args: token: Slack API Token (either bot token or user token) - url: Complete URL (e.g., https://www.slack.com/api/chat.postMessage) + url: Complete URL (e.g., https://slack.com/api/chat.postMessage) query_params: Query string json_body: JSON data structure (it's still a dict at this point), if you give this argument, body_params and files will be skipped @@ -355,7 +355,7 @@

Module slack_sdk.web.base_client

"""Performs an HTTP request and parses the response. Args: - url: Complete URL (e.g., https://www.slack.com/api/chat.postMessage) + url: Complete URL (e.g., https://slack.com/api/chat.postMessage) args: args has "headers", "data", "params", and "json" "headers": Dict[str, str] "data": Dict[str, Any] @@ -668,7 +668,7 @@

Classes

class BaseClient -(token: Optional[str] = None, base_url: str = 'https://www.slack.com/api/', timeout: int = 30, ssl: Optional[ssl.SSLContext] = None, proxy: Optional[str] = None, headers: Optional[dict] = None, user_agent_prefix: Optional[str] = None, user_agent_suffix: Optional[str] = None, team_id: Optional[str] = None, logger: Optional[logging.Logger] = None, retry_handlers: Optional[List[RetryHandler]] = None) +(token: Optional[str] = None, base_url: str = 'https://slack.com/api/', timeout: int = 30, ssl: Optional[ssl.SSLContext] = None, proxy: Optional[str] = None, headers: Optional[dict] = None, user_agent_prefix: Optional[str] = None, user_agent_suffix: Optional[str] = None, team_id: Optional[str] = None, logger: Optional[logging.Logger] = None, retry_handlers: Optional[List[RetryHandler]] = None)
@@ -677,7 +677,7 @@

Classes

Expand source code
class BaseClient:
-    BASE_URL = "https://www.slack.com/api/"
+    BASE_URL = "https://slack.com/api/"
 
     def __init__(
         self,
@@ -698,7 +698,7 @@ 

Classes

"""A string specifying an `xoxp-*` or `xoxb-*` token.""" self.base_url = base_url """A string representing the Slack API base URL. - Default is `'https://www.slack.com/api/'`.""" + Default is `'https://slack.com/api/'`.""" self.timeout = timeout """The maximum number of seconds the client will wait to connect and receive a response from Slack. @@ -862,7 +862,7 @@

Classes

Args: token: Slack API Token (either bot token or user token) - url: Complete URL (e.g., https://www.slack.com/api/chat.postMessage) + url: Complete URL (e.g., https://slack.com/api/chat.postMessage) query_params: Query string json_body: JSON data structure (it's still a dict at this point), if you give this argument, body_params and files will be skipped @@ -963,7 +963,7 @@

Classes

"""Performs an HTTP request and parses the response. Args: - url: Complete URL (e.g., https://www.slack.com/api/chat.postMessage) + url: Complete URL (e.g., https://slack.com/api/chat.postMessage) args: args has "headers", "data", "params", and "json" "headers": Dict[str, str] "data": Dict[str, Any] @@ -1349,7 +1349,7 @@

Instance variables

var base_url

A string representing the Slack API base URL. -Default is 'https://www.slack.com/api/'.

+Default is 'https://slack.com/api/'.

var headers
diff --git a/docs/api-docs/slack_sdk/web/client.html b/docs/api-docs/slack_sdk/web/client.html index ac37f1e4c..3e523eb31 100644 --- a/docs/api-docs/slack_sdk/web/client.html +++ b/docs/api-docs/slack_sdk/web/client.html @@ -65,7 +65,7 @@

Module slack_sdk.web.client

Attributes: token (str): A string specifying an `xoxp-*` or `xoxb-*` token. base_url (str): A string representing the Slack API base URL. - Default is `'https://www.slack.com/api/'` + Default is `'https://slack.com/api/'` timeout (int): The maximum number of seconds the client will wait to connect and receive a response from Slack. Default is 30 seconds. @@ -5154,7 +5154,7 @@

Classes

class WebClient -(token: Optional[str] = None, base_url: str = 'https://www.slack.com/api/', timeout: int = 30, ssl: Optional[ssl.SSLContext] = None, proxy: Optional[str] = None, headers: Optional[dict] = None, user_agent_prefix: Optional[str] = None, user_agent_suffix: Optional[str] = None, team_id: Optional[str] = None, logger: Optional[logging.Logger] = None, retry_handlers: Optional[List[RetryHandler]] = None) +(token: Optional[str] = None, base_url: str = 'https://slack.com/api/', timeout: int = 30, ssl: Optional[ssl.SSLContext] = None, proxy: Optional[str] = None, headers: Optional[dict] = None, user_agent_prefix: Optional[str] = None, user_agent_suffix: Optional[str] = None, team_id: Optional[str] = None, logger: Optional[logging.Logger] = None, retry_handlers: Optional[List[RetryHandler]] = None)

A WebClient allows apps to communicate with the Slack Platform's Web API.

@@ -5169,7 +5169,7 @@

Attributes

A string specifying an xoxp-* or xoxb-* token.
base_url : str
A string representing the Slack API base URL. -Default is 'https://www.slack.com/api/'
+Default is 'https://slack.com/api/'
timeout : int
The maximum number of seconds the client will wait to connect and receive a response from Slack. @@ -5233,7 +5233,7 @@

Note

Attributes: token (str): A string specifying an `xoxp-*` or `xoxb-*` token. base_url (str): A string representing the Slack API base URL. - Default is `'https://www.slack.com/api/'` + Default is `'https://slack.com/api/'` timeout (int): The maximum number of seconds the client will wait to connect and receive a response from Slack. Default is 30 seconds. diff --git a/docs/api-docs/slack_sdk/web/deprecation.html b/docs/api-docs/slack_sdk/web/deprecation.html index da5e8bcef..667103649 100644 --- a/docs/api-docs/slack_sdk/web/deprecation.html +++ b/docs/api-docs/slack_sdk/web/deprecation.html @@ -40,6 +40,8 @@

Module slack_sdk.web.deprecation

deprecated_method_prefixes_2023_07 = ["stars."] +deprecated_method_prefixes_2024_09 = ["workflows.stepCompleted", "workflows.updateStep", "workflows.stepFailed"] + def show_deprecation_warning_if_any(method_name: str): """Prints a warning if the given method is deprecated""" @@ -67,6 +69,15 @@

Module slack_sdk.web.deprecation

f"{method_name} is deprecated. For more info, go to " "https://api.slack.com/changelog/2023-07-its-later-already-for-stars-and-reminders" ) + warnings.warn(message) + + # 2024/09 workflow steps API deprecation + matched_prefixes = [prefix for prefix in deprecated_method_prefixes_2024_09 if method_name.startswith(prefix)] + if len(matched_prefixes) > 0: + message = ( + f"{method_name} is deprecated. For more info, go to " + "https://api.slack.com/changelog/2023-08-workflow-steps-from-apps-step-back" + ) warnings.warn(message)
@@ -112,6 +123,15 @@

Functions

f"{method_name} is deprecated. For more info, go to " "https://api.slack.com/changelog/2023-07-its-later-already-for-stars-and-reminders" ) + warnings.warn(message) + + # 2024/09 workflow steps API deprecation + matched_prefixes = [prefix for prefix in deprecated_method_prefixes_2024_09 if method_name.startswith(prefix)] + if len(matched_prefixes) > 0: + message = ( + f"{method_name} is deprecated. For more info, go to " + "https://api.slack.com/changelog/2023-08-workflow-steps-from-apps-step-back" + ) warnings.warn(message)
diff --git a/docs/api-docs/slack_sdk/web/index.html b/docs/api-docs/slack_sdk/web/index.html index 3c7341450..43313aaa7 100644 --- a/docs/api-docs/slack_sdk/web/index.html +++ b/docs/api-docs/slack_sdk/web/index.html @@ -412,7 +412,7 @@

Raises

class WebClient -(token: Optional[str] = None, base_url: str = 'https://www.slack.com/api/', timeout: int = 30, ssl: Optional[ssl.SSLContext] = None, proxy: Optional[str] = None, headers: Optional[dict] = None, user_agent_prefix: Optional[str] = None, user_agent_suffix: Optional[str] = None, team_id: Optional[str] = None, logger: Optional[logging.Logger] = None, retry_handlers: Optional[List[RetryHandler]] = None) +(token: Optional[str] = None, base_url: str = 'https://slack.com/api/', timeout: int = 30, ssl: Optional[ssl.SSLContext] = None, proxy: Optional[str] = None, headers: Optional[dict] = None, user_agent_prefix: Optional[str] = None, user_agent_suffix: Optional[str] = None, team_id: Optional[str] = None, logger: Optional[logging.Logger] = None, retry_handlers: Optional[List[RetryHandler]] = None)

A WebClient allows apps to communicate with the Slack Platform's Web API.

@@ -427,7 +427,7 @@

Attributes

A string specifying an xoxp-* or xoxb-* token.
base_url : str
A string representing the Slack API base URL. -Default is 'https://www.slack.com/api/'
+Default is 'https://slack.com/api/'
timeout : int
The maximum number of seconds the client will wait to connect and receive a response from Slack. @@ -491,7 +491,7 @@

Note

Attributes: token (str): A string specifying an `xoxp-*` or `xoxb-*` token. base_url (str): A string representing the Slack API base URL. - Default is `'https://www.slack.com/api/'` + Default is `'https://slack.com/api/'` timeout (int): The maximum number of seconds the client will wait to connect and receive a response from Slack. Default is 30 seconds. diff --git a/docs/api-docs/slack_sdk/web/internal_utils.html b/docs/api-docs/slack_sdk/web/internal_utils.html index b0091dd6e..126398754 100644 --- a/docs/api-docs/slack_sdk/web/internal_utils.html +++ b/docs/api-docs/slack_sdk/web/internal_utils.html @@ -93,7 +93,7 @@

Module slack_sdk.web.internal_utils

Returns: The absolute API URL. - e.g. 'https://www.slack.com/api/chat.postMessage' + e.g. 'https://slack.com/api/chat.postMessage' """ return urljoin(base_url, api_method) diff --git a/docs/api-docs/slack_sdk/web/legacy_base_client.html b/docs/api-docs/slack_sdk/web/legacy_base_client.html index a4f335208..91ae76ff3 100644 --- a/docs/api-docs/slack_sdk/web/legacy_base_client.html +++ b/docs/api-docs/slack_sdk/web/legacy_base_client.html @@ -69,7 +69,7 @@

Module slack_sdk.web.legacy_base_client

class LegacyBaseClient: - BASE_URL = "https://www.slack.com/api/" + BASE_URL = "https://slack.com/api/" def __init__( self, @@ -93,7 +93,7 @@

Module slack_sdk.web.legacy_base_client

"""A string specifying an `xoxp-*` or `xoxb-*` token.""" self.base_url = base_url """A string representing the Slack API base URL. - Default is `'https://www.slack.com/api/'`.""" + Default is `'https://slack.com/api/'`.""" self.timeout = timeout """The maximum number of seconds the client will wait to connect and receive a response from Slack. @@ -329,7 +329,7 @@

Module slack_sdk.web.legacy_base_client

Args: token: Slack API Token (either bot token or user token) - url: Complete URL (e.g., https://www.slack.com/api/chat.postMessage) + url: Complete URL (e.g., https://slack.com/api/chat.postMessage) query_params: Query string json_body: JSON data structure (it's still a dict at this point), if you give this argument, body_params and files will be skipped @@ -429,7 +429,7 @@

Module slack_sdk.web.legacy_base_client

"""Performs an HTTP request and parses the response. Args: - url: Complete URL (e.g., https://www.slack.com/api/chat.postMessage) + url: Complete URL (e.g., https://slack.com/api/chat.postMessage) args: args has "headers", "data", "params", and "json" "headers": Dict[str, str] "data": Dict[str, Any] @@ -624,7 +624,7 @@

Classes

class LegacyBaseClient -(token: Optional[str] = None, base_url: str = 'https://www.slack.com/api/', timeout: int = 30, loop: Optional[asyncio.events.AbstractEventLoop] = None, ssl: Optional[ssl.SSLContext] = None, proxy: Optional[str] = None, run_async: bool = False, use_sync_aiohttp: bool = False, session: Optional[aiohttp.client.ClientSession] = None, headers: Optional[dict] = None, user_agent_prefix: Optional[str] = None, user_agent_suffix: Optional[str] = None, team_id: Optional[str] = None, logger: Optional[logging.Logger] = None) +(token: Optional[str] = None, base_url: str = 'https://slack.com/api/', timeout: int = 30, loop: Optional[asyncio.events.AbstractEventLoop] = None, ssl: Optional[ssl.SSLContext] = None, proxy: Optional[str] = None, run_async: bool = False, use_sync_aiohttp: bool = False, session: Optional[aiohttp.client.ClientSession] = None, headers: Optional[dict] = None, user_agent_prefix: Optional[str] = None, user_agent_suffix: Optional[str] = None, team_id: Optional[str] = None, logger: Optional[logging.Logger] = None)
@@ -633,7 +633,7 @@

Classes

Expand source code
class LegacyBaseClient:
-    BASE_URL = "https://www.slack.com/api/"
+    BASE_URL = "https://slack.com/api/"
 
     def __init__(
         self,
@@ -657,7 +657,7 @@ 

Classes

"""A string specifying an `xoxp-*` or `xoxb-*` token.""" self.base_url = base_url """A string representing the Slack API base URL. - Default is `'https://www.slack.com/api/'`.""" + Default is `'https://slack.com/api/'`.""" self.timeout = timeout """The maximum number of seconds the client will wait to connect and receive a response from Slack. @@ -893,7 +893,7 @@

Classes

Args: token: Slack API Token (either bot token or user token) - url: Complete URL (e.g., https://www.slack.com/api/chat.postMessage) + url: Complete URL (e.g., https://slack.com/api/chat.postMessage) query_params: Query string json_body: JSON data structure (it's still a dict at this point), if you give this argument, body_params and files will be skipped @@ -993,7 +993,7 @@

Classes

"""Performs an HTTP request and parses the response. Args: - url: Complete URL (e.g., https://www.slack.com/api/chat.postMessage) + url: Complete URL (e.g., https://slack.com/api/chat.postMessage) args: args has "headers", "data", "params", and "json" "headers": Dict[str, str] "data": Dict[str, Any] @@ -1257,7 +1257,7 @@

Instance variables

var base_url

A string representing the Slack API base URL. -Default is 'https://www.slack.com/api/'.

+Default is 'https://slack.com/api/'.

var headers
diff --git a/docs/api-docs/slack_sdk/web/legacy_client.html b/docs/api-docs/slack_sdk/web/legacy_client.html index 3979d0f32..46f38645d 100644 --- a/docs/api-docs/slack_sdk/web/legacy_client.html +++ b/docs/api-docs/slack_sdk/web/legacy_client.html @@ -75,7 +75,7 @@

Module slack_sdk.web.legacy_client

Attributes: token (str): A string specifying an `xoxp-*` or `xoxb-*` token. base_url (str): A string representing the Slack API base URL. - Default is `'https://www.slack.com/api/'` + Default is `'https://slack.com/api/'` timeout (int): The maximum number of seconds the client will wait to connect and receive a response from Slack. Default is 30 seconds. @@ -5164,7 +5164,7 @@

Classes

class LegacyWebClient -(token: Optional[str] = None, base_url: str = 'https://www.slack.com/api/', timeout: int = 30, loop: Optional[asyncio.events.AbstractEventLoop] = None, ssl: Optional[ssl.SSLContext] = None, proxy: Optional[str] = None, run_async: bool = False, use_sync_aiohttp: bool = False, session: Optional[aiohttp.client.ClientSession] = None, headers: Optional[dict] = None, user_agent_prefix: Optional[str] = None, user_agent_suffix: Optional[str] = None, team_id: Optional[str] = None, logger: Optional[logging.Logger] = None) +(token: Optional[str] = None, base_url: str = 'https://slack.com/api/', timeout: int = 30, loop: Optional[asyncio.events.AbstractEventLoop] = None, ssl: Optional[ssl.SSLContext] = None, proxy: Optional[str] = None, run_async: bool = False, use_sync_aiohttp: bool = False, session: Optional[aiohttp.client.ClientSession] = None, headers: Optional[dict] = None, user_agent_prefix: Optional[str] = None, user_agent_suffix: Optional[str] = None, team_id: Optional[str] = None, logger: Optional[logging.Logger] = None)

A WebClient allows apps to communicate with the Slack Platform's Web API.

@@ -5179,7 +5179,7 @@

Attributes

A string specifying an xoxp-* or xoxb-* token.
base_url : str
A string representing the Slack API base URL. -Default is 'https://www.slack.com/api/'
+Default is 'https://slack.com/api/'
timeout : int
The maximum number of seconds the client will wait to connect and receive a response from Slack. @@ -5243,7 +5243,7 @@

Note

Attributes: token (str): A string specifying an `xoxp-*` or `xoxb-*` token. base_url (str): A string representing the Slack API base URL. - Default is `'https://www.slack.com/api/'` + Default is `'https://slack.com/api/'` timeout (int): The maximum number of seconds the client will wait to connect and receive a response from Slack. Default is 30 seconds. diff --git a/slack_sdk/version.py b/slack_sdk/version.py index 8382c4c21..69caee6bd 100644 --- a/slack_sdk/version.py +++ b/slack_sdk/version.py @@ -1,2 +1,2 @@ """Check the latest version at https://pypi.org/project/slack-sdk/""" -__version__ = "3.27.2" +__version__ = "3.28.0"