Sha256: d8ae6375cc6d70c0f6eeddbb735d207ab1210901a2335bd07310cad92ae46302

Contents?: true

Size: 617 Bytes

Versions: 8

Compression:

Stored size: 617 Bytes

Contents

# 发短信
# ruby ./lib/authing_ruby/test/sms.rb

require "./lib/authing_ruby.rb" # 模块主文件
require "./lib/authing_ruby/test/helper.rb"
require 'dotenv'
Dotenv.load('.env.test') # 你可以编辑这个文件来修改环境变量

options = {
	# appHost: ENV["appHost"] || , # "https://rails-demo.authing.cn", 
	# appId: ENV["appId"], # "60800b9151d040af9016d60b"
  appId: "60ab26fe5be730bfc1742c68",
  appHost: "https://hn-staging.authing.cn",
}
@authenticationClient = AuthingRuby::AuthenticationClient.new(options)
phone = "13556136684"
sms_result = @authenticationClient.sendSmsCode(phone)
puts sms_result

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
authing_ruby-1.1.6 lib/authing_ruby/test/sms.rb
authing_ruby-1.1.5 lib/authing_ruby/test/sms.rb
authing_ruby-1.1.4 lib/authing_ruby/test/sms.rb
authing_ruby-1.1.3 lib/authing_ruby/test/sms.rb
authing_ruby-1.1.2 lib/authing_ruby/test/sms.rb
authing_ruby-1.1.1 lib/authing_ruby/test/sms.rb
authing_ruby-1.1.0 lib/authing_ruby/test/sms.rb
authing_ruby-1.0.9 lib/authing_ruby/test/sms.rb