Skip to content

Instantly share code, notes, and snippets.

@dwilkie
dwilkie / wing_money_api_curl_examples.md
Last active August 29, 2015 14:06
WingMoney API CURL Examples

WingMoney API CURL Examples

The WingMoney API can be used to execute transactions through Wing. Here are some CURL examples. Note that these examples actually work so feel free to try them. For examples in Ruby, see the wing-money-ruby gem.

Transaction Types

WingToWing

WingToWing Transactions can be created to send funds from one Wing Account to another.

@dwilkie
dwilkie / bongloy_api_reference.md
Last active August 29, 2015 14:06
Bongloy API Reference

Bongloy API Reference

The Bongloy API is organized around REST. To make the Bongloy API as explorable as possible, accounts have test-mode API keys as well as live-mode API keys. These keys can be active at the same time. Data created with test-mode credentials will never result in live charges and will never cost anyone money.

Authentication

You authenticate to the Bongloy API by providing one of your API keys in the request. You can manage your API keys from your account. You can have multiple API keys active at one time. Your API keys carry many privileges, so be sure to keep them secret!

All API requests must be made over HTTPS. Calls made over plain HTTP will fail. You must authenticate for all requests.

@dwilkie
dwilkie / makehub
Last active August 29, 2015 14:13 — forked from ahmedabdulaziz/makehub
AIR QUALITY STATION
# Title
AIR QUALITY STATION
# Picture
media: http://s27.postimg.org/n9159lwpf/1604581_626258354094217_2010345751_n.jpg
# Objective
the main Objective of this project is to measure pollution percentage in the air specially carbon monoxide in cities and for industrial applications. we tend to make it like as a distributed stations around the world to make a map for the pollution in the world.
# Duration
3 days
# Age Group
all
@dwilkie
dwilkie / gist:6256234
Last active December 21, 2015 05:19
Adhearsion-Twilio

Adhearsion-Twilio

Adhearsion-Twilio is an Adhearsion Plugin, which allows you to quickly migrate an existing app built on Twilio over to an Adhearsion app, or create a new Adhearsion app from scratch without having to worry too much about how Adhearsion works.

Use Case - Chibi

Chibi is a Mobile Dating and Chat Service based in Cambodia that connects it's subscribers with new friends via SMS and Voice. Subscribers can SMS or call to a local phone number and be instantly and anonymously connected with a new friend in their area. There's no need for registration or payment. Registration is done automatically when the subscriber calls or SMS's for the first time and the subscribers profile is built up overtime by automatic analysis of SMS and voice data from the subscriber.

Bootstrap with Twilio

<form action="" method="POST">
<script
src="https://js.bongloy.com/assets/checkout.js" class="bongloy-button"
data-key="pk_test_2411c55a75ad6d004eaaf240f99b577dec6d6630789c06a23639967ae3c10572"
data-image="http://www.mcwade.com/DesignTalk/wp-content/uploads/2009/02/cokeredcircle.jpg"
data-name="Coca-Cola Cambodia"
data-description="Invoice ($235.00)"
data-label="Pay Coca-Cola Invoice"
data-amount="23500">
</script>
@dwilkie
dwilkie / testtwiml.xml
Last active July 18, 2017 11:20
Twimlbin
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Record/>
</Response>
@dwilkie
dwilkie / somleng_io_example.rb
Last active July 25, 2017 08:12
somleng_example.rb
#!/usr/bin/env ruby
RESULTS_FILE = "test_mt_results.json"
ACCOUNT_SID = "REPLACE_ME"
AUTH_TOKEN = "REPLACE ME"
CALLER_ID = "345"
require 'httparty'
results = {}
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say>Please record your message after the tone</Say>
<Record action="https://requestb.in/1m351lo1" recordingStatusCallback="https://requestb.in/ysgqk6ys"/>
</Response>
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Gather action='https://requestb.in/15x8rjs1' timeout='60'>
<Say>Please press 1 or say sales for sales.</Say>
</Gather>
</Response>
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Play>https://s3.ap-southeast-1.amazonaws.com/audio.ews1294.info/9a7fee16-9d09-48fd-a25e-d0ade953d947-SampleAudio.mp3</Play>
</Response>