sendinblue / APIv3-ruby-library

MIT License
43 stars 31 forks source link

send transactional sms Error #55

Closed VincentSim closed 3 years ago

VincentSim commented 3 years ago

Hi there !

api_key = "xkeysib-XXXXXXX"

SibApiV3Sdk.configure do |config|
  config.api_key['api-key'] = api_key
  onfig.api_key['partner-key'] = api_key
end

api_instance = SibApiV3Sdk::TransactionalSMSApi.new
send_transac_sms = SibApiV3Sdk::SendTransacSms.new

send_transac_sms_params = {"sender":"test", "recipient":"+336XXXXXXX", "content":"content test"}

api_instance.send_transac_sms(send_transac_sms_params)

I got the error below

ETHON: performed EASY effective_url=https://api.sendinblue.com/v3/transactionalSMS/sms response_code=400 return_code=ok total_time=0.174188
SibApiV3Sdk::ApiError: 
from /Users/vincentsimon/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/sib-api-v3-sdk-7.4.0/lib/sib-api-v3-sdk/api_client.rb:65:in `call_api'
aakanksha-sib commented 3 years ago

Hi @VincentSim , We would suggest you to please raise a ticket from your account so that we can further check the exact cause of the 400 error code returned to you. Also, please do mention the exact inputs in the ticket along with the date and time of request, if possible.

Thanks! Aakanksha

VincentSim commented 3 years ago

Thanks @aakanksha-sib but unfortunately i can't create a new ticket i got a 500