This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This gets the powerups for us to use in the below replaceEmoji function | |
window.powerups = (function() { | |
var powerups = null; | |
$.ajax({ | |
'async': false, | |
'global': false, | |
'url': 'https://powerup.groupme.com/powerups', | |
'dataType': 'json', | |
'success': function(data) { | |
powerups = data; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Originally set up as a Rails initializer, but can be adapted to use elsewhere. | |
# Requires the faye gem | |
require 'eventmachine' | |
Thread.new do | |
EM.run { | |
::GroupMeClient = Faye::Client.new 'https://push.groupme.com/faye' | |
class GroupMeClientAuth |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class GroupMe | |
include HTTParty | |
base_uri 'https://api.groupme.com/v3' | |
format :json | |
def initialize(access_token) | |
@access_token = access_token | |
end | |
def doPost(path, body, query = nil) |
NewerOlder