Sha256: 4d12600e6ce4e653e67bfec60ba4fd86bcd2a7cb79e554d0edd77633fb678b06
Contents?: true
Size: 1.15 KB
Versions: 3
Compression:
Stored size: 1.15 KB
Contents
module MailUp module Console class Import attr_accessor :api def initialize(id, api) @api = api @id = id end # Get import status. # # @return [JSON] A Status object with the following attributes: # * idImport [Integer] # * Completed [Boolean] # * UpdatedRecipients [Integer] # * ValidRecipients [Integer] # * CreatedRecipients [Integer] # * ImportedRecipients [Integer] # * NotValidRecipients [Integer] # # @see http://help.mailup.com/display/mailupapi/Console+methods+v1.1#Consolemethodsv1.1-GetImportStatus # # @example # # status = mailup.console.import(9).status # status['Completed'] # => true # status['UpdatedRecipients'] # => 159 # def status @api.get("#{@api.path}/Import/#{@id}") end # Get Sending Confirmation Email Id. # # @see http://help.mailup.com/display/mailupapi/Recipients#Recipients-SendConfirmationEmail # def confirmation_email_id @api.get("#{@api.path}/Import/#{@id}/Sending") end end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
kono_mailup-0.1.0 | vendor/mailup-ruby/lib/mailup/console/import.rb |
kono_mailup-0.0.2 | vendor/mailup-ruby/lib/mailup/console/import.rb |
mailup-1.2.0 | lib/mailup/console/import.rb |