Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
message_media_conversations
Advanced tools
⚠️ Please note the API documented is in beta and is subject to breaking changes in the short term. ⚠️
The MessageMedia Conversations API allows users to communicate by sending and receiving messages via OTT messaging services. This feature is disabled by default. To enable it, you don't need to make any changes to your application, just an account configuration change by MessageMedia's support team (support@messagemedia.com).
Run the following command to install the SDK via RubyGems:
gem install messagemedia-conversations-sdk
It's easy to get started. Simply enter the API Key and secret you obtained from the MessageMedia Developers Portal into the code snippet below.
require 'message_media_conversations'
require 'pp'
# Configuration parameters and credentials
basic_auth_user_name = 'basic_auth_user_name' # The username to use with basic authentication
basic_auth_password = 'basic_auth_password' # The password to use with basic authentication
client = MessageMediaConversations::MessageMediaConversationsClient.new(
basic_auth_user_name: basic_auth_user_name,
basic_auth_password: basic_auth_password
)
configuration_controller = client.configuration
request = MessageMediaConversations::ConfigureAccountRequest.new("http://accounts-domain.com/callback", "Rainbow Serpent Festival")
result = configuration_controller.create_configure_account(request)
pp result
require 'message_media_conversations'
require 'pp'
# Configuration parameters and credentials
basic_auth_user_name = 'basic_auth_user_name' # The username to use with basic authentication
basic_auth_password = 'basic_auth_password' # The password to use with basic authentication
client = MessageMediaConversations::MessageMediaConversationsClient.new(
basic_auth_user_name: basic_auth_user_name,
basic_auth_password: basic_auth_password
)
facebook_controller = client.facebook
result = facebook_controller.get_facebook_authorisation_url()
pp result
require 'message_media_conversations'
require 'pp'
# Configuration parameters and credentials
basic_auth_user_name = 'basic_auth_user_name' # The username to use with basic authentication
basic_auth_password = 'basic_auth_password' # The password to use with basic authentication
facebook_controller = client.facebook
result = facebook_controller.get_facebook_pages()
pp result
You can get the facebookPageId by looking at the response of the Get Facebook pages example.
require 'message_media_conversations'
require 'pp'
# Configuration parameters and credentials
basic_auth_user_name = 'basic_auth_user_name' # The username to use with basic authentication
basic_auth_password = 'basic_auth_password' # The password to use with basic authentication
facebook_controller = client.facebook
facebook_page_id = 'facebookPageId'
result = facebook_controller.create_integrate_facebook_page(facebook_page_id)
pp result
require 'message_media_conversations'
require 'pp'
# Configuration parameters and credentials
basic_auth_user_name = 'basic_auth_user_name' # The username to use with basic authentication
basic_auth_password = 'basic_auth_password' # The password to use with basic authentication
appUsers_controller = client.app_users
result = appUsers_controller.get_app_users()
pp result
You can get the appUserId from the response of the Get users example.
require 'message_media_conversations'
require 'pp'
# Configuration parameters and credentials
basic_auth_user_name = 'basic_auth_user_name' # The username to use with basic authentication
basic_auth_password = 'basic_auth_password' # The password to use with basic authentication
appUsers_controller = client.app_users
app_user_id = 'appUserId'
result = appUsers_controller.get_app_user_messages(app_user_id)
pp result
You can get the appUserId from the response of the Get users example.
require 'message_media_conversations'
require 'pp'
# Configuration parameters and credentials
basic_auth_user_name = 'basic_auth_user_name' # The username to use with basic authentication
basic_auth_password = 'basic_auth_password' # The password to use with basic authentication
appUsers_controller = client.app_users
app_user_id = 'appUserId'
message = BaseMessageDto.new({"key":"value"})
appUsers_controller.create_send_message(app_user_id, message)
Check out the full API documentation for more detailed information.
Please contact developer support at developers@messagemedia.com or check out the developer portal at developers.messagemedia.com
Apache License. See the LICENSE file.
FAQs
Unknown package
We found that message_media_conversations demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.