回答編集履歴
1
文法修正
test
CHANGED
@@ -2,6 +2,6 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
-
cmd = 'curl -F file=@{} -F channels={} -F token={} https://slack.com/api/files.upload'.format(file_path,channel,self.slack_token)
|
5
|
+
cmd = 'curl -F file=@{0} -F channels={1} -F token={2} https://slack.com/api/files.upload'.format(file_path,channel,self.slack_token)
|
6
6
|
|
7
7
|
subprocess.call(cmd,shell=True)
|