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
!function($,window,undefined){ | |
var AdvancedFader = WidgetBaseView.extend({ | |
name : 'Advanced Message Fader', | |
setup : function(options){ | |
WidgetBaseView.prototype.setup.call(this); | |
this.div = $('<div class="AdvancedFader"></div>'); | |
this.$el.append(this.div); | |
this.adjust(_.extend({ | |
handleColor : "white", | |
bodyColor : "white", |
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
<?php | |
// Created by Chris Teft Hughes | |
// Copyright (c) 2009. All rights reserved. | |
// Released under MIT License | |
// ADD TO YOUR CONFIG FILE | |
define('ZEEPSECRECTKEY', 'yoursecret'); | |
define('ZEEPAPIKEY', 'yourapikey'); | |
define('ZEEP_ENDPOINT', 'https://api.zeepmobile.com/messaging/2008-07-14/send_message'); |
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
<?php | |
// Created by Chris Teft Hughes | |
// Copyright (c) 2009. All rights reserved. | |
// Released under MIT License | |
$event = trim($_POST['event']); | |
switch ($event) { | |
case 'SUBSCRIPTION_UPDATE': | |
$userId = intval($_POST['uid']); |
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
// Created by Simon Wex ([email protected]) on 2008-07-12 | |
// Copyright (c) 2008. All rights reserved. | |
// Released under MIT License | |
import java.io.UnsupportedEncodingException; | |
import java.net.URLEncoder; | |
import java.security.InvalidKeyException; | |
import java.security.NoSuchAlgorithmException; | |
import java.text.SimpleDateFormat; | |
import java.util.Date; |
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
#!/usr/bin/env ruby -wKU | |
# Created by Simon Wex ([email protected]) on 2008-07-12 | |
# Copyright (c) 2008. All rights reserved. | |
# Released under MIT License | |
require 'openssl' | |
require 'base64' | |
require 'time' | |
require 'cgi' |
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
#!/usr/bin/env python | |
# Created by Simon Wex ([email protected]) on 2008-07-12 | |
# Copyright (c) 2008. All rights reserved. | |
# Released under MIT License | |
import base64 | |
import hmac | |
import sha | |
import time |
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
#!/usr/local/php5/bin/php -q | |
<?php | |
$API_KEY = "your_api_key"; | |
$SECRET_ACCESS_KEY = "your_secret_key"; | |
// you might think you could use the PHP const DATE_RFC1123 but it is defined as "D, d M Y H:i:s O" | |
$http_date = gmdate("D, d M Y H:i:s T"); | |
// (ex. Sat, 12 Jul 2008 09:04:28 GMT) | |
$parameters = "user_id=1234&body=" . urlencode("Art thou not Romeo, and a Montague?"); | |
//user_id=1234&body=Art+thou+not+Romeo%2C+and+a+Montague%3F |
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
<?php | |
//To be safe I added this | |
header("Content-type: text/plain"); | |
define( API_URL, 'https://api.zeepmobile.com/messaging/2008-07-14/ | |
send_message' ); | |
define( API_KEY, 'YOUR-API-KEY' ); | |
define( SECRET_ACCESS_KEY, 'YOUR_SECRET_ACCESS_KEY' ); | |
# (ex. Sat, 12 Jul 2008 09:04:28 GMT) | |
$http_date = gmdate( DATE_RFC822 ); |
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
<?php | |
# Created by Brian Hendrickson ([email protected]) on 2008-09-22 | |
# Copyright (c) 2008. All rights reserved. | |
# Released under MIT License | |
define( API_URL, 'https://api.zeepmobile.com/messaging/2008-07-14/send_message' ); | |
define( API_KEY, 'YOUR_API_KEY' ); | |
define( SECRET_ACCESS_KEY, 'YOUR_SECRET_KEY' ); | |
# (ex. Sat, 12 Jul 2008 09:04:28 GMT) |
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
my $canon = "$key$date$msg"; | |
my $hmac = hmac_sha1($canon, $secret); | |
my $digest = encode_base64($hmac); | |
my $auth = "Zeep $key:$digest"; |