回答編集履歴
1
文法修正
answer
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
強引ですが、以下の方法で解決できました。
|
2
2
|
|
3
|
-
cmd = 'curl -F file=@{} -F channels={} -F token={} https://slack.com/api/files.upload'.format(file_path,channel,self.slack_token)
|
3
|
+
cmd = 'curl -F file=@{0} -F channels={1} -F token={2} https://slack.com/api/files.upload'.format(file_path,channel,self.slack_token)
|
4
4
|
subprocess.call(cmd,shell=True)
|