๐ฅช ์ ์ฌ๋น์ง์๋ฆผ ๋ฌธ์๋ฐ์ก ์๋น์ค
์ ์ฌ ๋น์ง์๊ฐ ๊น๋จน์ง ์๋๋ก ์ ์ฌ์๊ฐ ์ด์ ์ ๋ฏธ๋ฆฌ SMS ๋ฌธ์๋ฅผ ๋ฐ์กํ์ฌ ๊น๋จน์ง ์๊ฒ ํ๋ค. ๋ํ ๋น์ง๋ช ๋จ ๊ด๋ฆฌ์๋ ๋น์ง ๋ช ๋จ์ ๊ตฌ๊ธ ์ํธ๋ฅผ ํตํด ๊ฐ๋จํ๊ฒ ๊ด๋ฆฌํ๋ค.
- ๐ ๋๊ตฌ์๊ฒ : ๋น์ผ ๋น์ง์ 2๋ช (12:00 ~ 12:30, 12:30 ~ 13:00)
- โฐ ์ธ์ : ๋น์ผ ๋น์ง ์ (11:30, 12:25)
- โ๏ธ ์ด๋ป๊ฒ : SMS ๋ฐ์ก 1ํ (CoolSMS API ์๋น์ค)
- ๐ ๋งค์ ๋น์ง์ ๋ช ๋จ์ ์ ๋ก๋ ๋ฐ ์์
- โ๏ธ ๋น์ง์์ ์ฐ๋ฝ๋ง์ ์ ๋ก๋ ๋ฐ ์์
- ๐ Google Docs๋ฅผ ์ด์ฉํ์ฌ ๋น์ง์ ๋ช ๋จ ๋ฌธ์ ๊ณต์ ๋ฐ ๊ด๋ฆฌ
$ pip install coolsms
$ pip install coolsmssdk
$ pip install gspread
Google Sheet API ๋ฐ CoolSMS API ์ฐ๋์ ์ํด์๋ ์๋์ ๊ฐ๋ฆฌ ์ค์ ํด์ค์ผ ํ๋ค.
- api_key : CoolSMS API Key
- api_secret : CoolSMS API Secret
- sender : SMS ๋ฐ์ ๋ฒํธ
- URL : ๋ฌธ์์ ํฌํจ ํ ๋น์ง๋ช ๋จ Short URL
- supervisor : ๋น์ง๋ช ๋จ ๊ด๋ฆฌ์ ์ ํ๋ฒํธ
- sys_admin_phone : ์์คํ ๊ด๋ฆฌ์ ์ ํ๋ฒํธ
- key.json์ Google Api ๋ฐ๊ธ ํ ์ฌ์ฉ์ ์ธ์ฆ์ ๋ณด(Client ID) ๋ฐ๊ธ ์ ์ ๊ณต๋๋ JSON ํ์ผ์ key.json์ผ๋ก ์ ์ฅํ๋ฉด ๋๋ค.
$ python main.py
- ๋น์ง ์๊ฐ์ด ๋๋ฉด ์์ ๊ฐ์ด ๋ฌธ์๋ฅผ ์์ ํ๋ค.
Copyright (c) 2019 HAREX Infotech.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.