
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Globe Connect for Ruby platform provides an implementation of Globe APIs e.g Authentication, Amax, Sms etc. that is easy to use and can be integrated in your existing Ruby application. Below shows some samples on how to use the API depending on the functionality that you need to integrate in your application.
require 'globe_connect'
authenticate = Authentication.new
url = authenticate.get_access_url('[APP ID]')
response = authenticate.get_access_token('[APP ID]', '[APP_SECRET]', '[CODE]')
puts response
require 'globe_connect'
amax = Amax.new('[APP ID]', '[APP SECRET]')
response = amax.send_reward_request('[ADDRESS]', '[PROMO NAME]', '[TOKEN]')
puts response
require 'globe_connect'
binary = Sms.new('[ACCESS TOKEN]', [SHORT CODE])
response = binary.send_binary_message('[ADDRESS]', '[MESSAGE]', '[USER DATA HEADER]')
puts response
require 'globe_connect'
location = LocationQuery.new('[ACCESS TOKEN]')
response = location.get_location('[ADDRESS]', [ACCURACY])
puts response
require 'globe_connect'
payment = Payment.new('[APP ID]', '[APP SECRET]', '[ACCESS TOKEN]')
response = payment.send_payment_request([AMOUNT], '[DESCRIPTION]', '[ADDRESS]', '[END USER ID]', '[TRANSACTION OPERATION STATUS]')
puts response
require 'globe_connect'
payment = Payment.new('[APP ID]', '[APP SECRET]')
response = payment.get_last_reference_code
puts response
require 'globe_connect'
sms = Sms.new('[ACCESS TOKEN]', [SHORT CODE])
response = sms.send_message('[ADDRESS]', '[MESSAGE]')
puts response
require 'globe_connect'
subscriber = Subscriber.new('[ACCESS TOKEN]')
response = subscriber.get_subscriber_balance('[ADDRESS]')
puts response
require 'globe_connect'
subscriber = Subscriber.new('[ACCESS TOKEN]')
response = subscriber.get_subscriber_reload_amount('[ADDRESS]')
require 'globe_connect'
ussd = Ussd.new('[ACCESS TOKEN]', [SHORT CODE])
response = ussd.send_ussd_request('[ADDRESS]', '[MESSAGE]', [FLASH])
puts response
require 'globe_connect'
ussd = Ussd.new('[ACCESS TOKEN]', [SHORT CODE])
response = ussd.reply_ussd_request('[ADDRESS]', '[MESSAGE]', '[SESSION ID]', [FLASH])
puts response
FAQs
Unknown package
We found that globe_connect 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.