回答編集履歴

1

文法修正

2018/04/03 06:23

投稿

lohengramm
lohengramm

スコア6

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)