We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After reviewing the api docs https://support.messagemedia.com/hc/en-us/articles/4413635760527-Messaging-API I noticed we can specify an account in headers. I didn't see an option to specify an account with the MessageMediaMessagesClient controller.
Do you recommend monkey patching it in? something like this
require 'message_media_messages' class CustomMessagesController < MessageMediaMessages::MessagesController def send_messages(body, account_id: nil) request = MessageMediaMessages::APIHelper.json_serialize(body) headers = { 'Content-Type' => 'application/json' } headers['Account'] = account_id if account_id response = @http_client.post( @base_uri + '/v1/messages', headers: headers, body: request ) validate_response(response) end end
The text was updated successfully, but these errors were encountered:
No branches or pull requests
After reviewing the api docs https://support.messagemedia.com/hc/en-us/articles/4413635760527-Messaging-API I noticed we can specify an account in headers. I didn't see an option to specify an account with the MessageMediaMessagesClient controller.
Do you recommend monkey patching it in?
something like this
The text was updated successfully, but these errors were encountered: