class Ecertic::API::OTPsService
Public Instance Methods
create(attributes, options = {})
click to toggle source
# File lib/ecertic/api/otps_service.rb, line 6 def create(attributes, options = {}) Ecertic::Utils.validate_mandatory_attributes(attributes, [:movil, :pdf_files]) attributes[:pdf_files] = Utils.encode_files(attributes[:pdf_files]) response = client.post("/sms", attributes, options) Resource::OTP::Request.new(response.body) end
status(token, options = {})
click to toggle source
# File lib/ecertic/api/otps_service.rb, line 13 def status(token, options = {}) attributes = { token: token } response = client.post("/status", attributes, options) Resource::OTP::Status.new(response.body) end