Skip to content

superlanding/ruby-mitake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

三竹簡訊 API (尚未整理)

initializer/mitake.rb

Mitake::API.username = ''
Mitake::API.password = ''

Usage

# 取得目前點數
Mitake::API.fetch_credit! 
# Define a SMS template 
# app/sms/user_sms
class UserSms < Mitake::Base
  define_message :welcome, "Hello, {nickname}, you are welcome"
  define_message :change_password, "Hello, {nickname}, your password has been changed in {time}"
end


# Send a message
UserSms.send_welcome!('09xxxxxxxx', nickname: 'Eddie Li')
UserSms.send_change_password!('09xxxxxxxx', nickname: 'Eddie Li', time: '11:30 AM')

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages