Assuming this SMS:
From: +1555666777
TO: +1222333444
Body: Nice to meet you.
Received at: 03 April 2024, 2:12:13The body of the POST request to /posts should be:
Assuming this SMS:
From: +1555666777
TO: +1222333444
Body: Nice to meet you.
Received at: 03 April 2024, 2:12:13The body of the POST request to /posts should be:
| module Cachemire | |
| extend ActiveSupport::Concern | |
| module ClassMethods | |
| def cache_method(name, &block) | |
| store_accessor :cache, name | |
| instance_eval do | |
| define_method name, &cache_wrap(&block) | |
| end | |
| end |
| desc 'Update Chat Status' | |
| namespace :scheduler do | |
| task :update_chat_status => :environment do | |
| begin | |
| # Connect to HipChat | |
| hc = HipChat::API.new(HIPCHAT_API_KEY) | |
| # Fetch your support chat room id | |
| room_id = hc.rooms_list['rooms'].find{|r| r['name'] =~ /conferencebadge\.com/i}['room_id'] | |
| # Fetch users in room |
| require 'rubygems' | |
| require 'capybara' | |
| require 'capybara/dsl' | |
| # Yeah Capybara is overkill... YEAH! | |
| Capybara.run_server = false | |
| Capybara.current_driver = :selenium | |
| class Numeric | |
| def add y |