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.

Parameters:

  • first_name (String) (defaults to: nil)

    Your first name.

  • last_name (String) (defaults to: nil)

    Your last name.

  • address (String) (defaults to: nil)

    Your company address.

  • city (String) (defaults to: nil)

    City where your company is located.

  • state (String) (defaults to: nil)

    State where your company is located.

  • country (String) (defaults to: nil)

    Country where your company is located.

  • zip (String) (defaults to: nil)

    Zipcode/Postcode where your company is located.

  • phone (String) (defaults to: nil)

    Valid phone number.

  • website (String) (defaults to: nil)

    Your companies website.

Returns:



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