mailjet / mailjet-gem

[API v3] Mailjet official Ruby GEM

Home Page:https://dev.mailjet.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for API v4 - SMS API

jeremylynch opened this issue · comments

Is there a roadmap of when this will be available?

Fortunately, it is very easy to do this with Httparty:

HTTParty.post("https://api.mailjet.com/v4/sms-send",
  body: {
    Text: "Have a nice SMS flight with Mailjet !",
    To: "+61412345678",
    From: "From"
  }.to_json,
  :headers => {
    'Content-Type' => 'application/json',
    "Authorization" => "Bearer #{oath_token}"
  }
)

The SMS feature is planned to be deprecated on Mailjet. Support for API isn't planned to be added to the gem. Closing.