Method: Sendgrid::Web::Profile#set
- Defined in:
- lib/sendgrid/web/profile.rb
#set(first_name: nil, last_name: nil, address: nil, city: nil, state: nil, country: nil, zip: nil, phone: nil, website: nil) ⇒ Sendgrid::Web::Response
Note:
All parameters are optional
Update your SendGrid profile.
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/sendgrid/web/profile.rb', line 26 def set( first_name: nil, last_name: nil, address: nil, city: nil, state: nil, country: nil, zip: nil, phone: nil, website: nil) res = connection.post( '/api/profile.set.json', default_params( first_name: first_name, last_name: last_name, address: address, city: city, state: state, country: country, zip: zip, phone: phone, website: website)) craft_response(res) end |