diff --git a/linenotify.py b/linenotify.py deleted file mode 100644 index 4c154c5..0000000 --- a/linenotify.py +++ /dev/null @@ -1,11 +0,0 @@ -#http://hacknote.jp/archives/19074/ -import pycurl - -buffer='テストだよん' -curl = pycurl.Curl() -curl.setopt(pycurl.URL, 'https://notify-api.line.me/api/notify') -curl.setopt(pycurl.HTTPHEADER, ['Authorization: Bearer AhfffLL3f1BYUJMnBnV8HZFAuvFS3ztJ65ZQv9UPo5j']) -#curl.setopt(pycurl.HTTPPOST, [('message', buffer.encode('utf-8')),('imageFile','@lena.png'),('stickerPackageId', '1'), ('stickerId', '112')]) -curl.setopt(pycurl.HTTPPOST, [('message', buffer.encode('utf-8')),('imageFile', (curl.FORM_FILE, 'lena.png'))]) - -curl.perform()