Sha256: 4c9f3036244e89970820b97b212ac17b0270b1af7011a307ed15ab669f05ecd5
Contents?: true
Size: 887 Bytes
Versions: 5
Compression:
Stored size: 887 Bytes
Contents
# Quickly and easily access the Twilio SendGrid API. module SendGrid class API < BaseInterface # * *Args* : # - +api_key+ -> your Twilio SendGrid API key # - +host+ -> the base URL for the API # - +request_headers+ -> any headers that you want to be globally applied # - +version+ -> the version of the API you wish to access, # currently only "v3" is supported # - +impersonate_subuser+ -> the subuser to impersonate, will be passed # in the "On-Behalf-Of" header # def initialize(api_key:, host: nil, request_headers: nil, version: nil, impersonate_subuser: nil) auth = "Bearer #{api_key}" host ||= 'https://api.sendgrid.com' super(auth: auth, host: host, request_headers: request_headers, version: version, impersonate_subuser: impersonate_subuser) end end end
Version data entries
5 entries across 5 versions & 1 rubygems