Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
lobbyist-ruby / lib / lobbyist / v2 / twilio_setting.rb
Size: Mime:
module Lobbyist
  module V2
    class TwilioSetting < Lobbyist::V2::Base

      attr_accessor :id, :company_id, :phone, :phone_sid, :message_service_sid, :customer_profile_sid, :cpbi_sid,
                    :authorized_representative_sid, :address_sid, :supporting_document_sid, :trust_products_sid, :mpi_sid,
                    :brand_sid, :campaign_sid, :response, :created_at, :updated_at, :campaign_status, :prospect_phone,
                    :prospect_phone_sid

      def self.find(company_id, params = {})
        create_from_response(get("/v2/companies/#{company_id}/twilio_settings.json", params))
      end

      def self.fetch_campaign_status(company_id, params = {})
        create_from_response(get("/v2/companies/#{company_id}/twilio_settings/fetch_campaign_status.json", params))
      end
    end
  end
end