Finishes an upload started with files.getUploadURLExternal. https://docs.slack.dev/reference/methods/files.completeUploadExternal
(
self,
*,
files: List[Dict[str, Optional[str]]],
channel_id: Optional[str] = None,
channels: Optional[List[str]] = None,
initial_comment: Optional[str] = None,
thread_ts: Optional[str] = None,
**kwargs,
)
| 4146 | return self.api_call("files.getUploadURLExternal", params=kwargs) |
| 4147 | |
| 4148 | def files_completeUploadExternal( |
| 4149 | self, |
| 4150 | *, |
| 4151 | files: List[Dict[str, Optional[str]]], |
| 4152 | channel_id: Optional[str] = None, |
| 4153 | channels: Optional[List[str]] = None, |
| 4154 | initial_comment: Optional[str] = None, |
| 4155 | thread_ts: Optional[str] = None, |
| 4156 | **kwargs, |
| 4157 | ) -> SlackResponse: |
| 4158 | """Finishes an upload started with files.getUploadURLExternal. |
| 4159 | https://docs.slack.dev/reference/methods/files.completeUploadExternal |
| 4160 | """ |
| 4161 | _files = [{k: v for k, v in f.items() if v is not None} for f in files] |
| 4162 | kwargs.update( |
| 4163 | { |
| 4164 | "files": json.dumps(_files), |
| 4165 | "channel_id": channel_id, |
| 4166 | "initial_comment": initial_comment, |
| 4167 | "thread_ts": thread_ts, |
| 4168 | } |
| 4169 | ) |
| 4170 | if channels: |
| 4171 | kwargs["channels"] = ",".join(channels) |
| 4172 | return self.api_call("files.completeUploadExternal", params=kwargs) |
| 4173 | |
| 4174 | def functions_completeSuccess( |
| 4175 | self, |
no test coverage detected