Skip to content

Instantly share code, notes, and snippets.

@dtolb
dtolb / Coverage.md
Last active August 8, 2016 13:44
Api Checklist
@dtolb
dtolb / Updates.md
Last active June 28, 2016 19:05
Node SDK Updates

Feedback for node sdk v2.x

Node v2.x was started a while ago, since then we may want to update some design patterns

Linter

Suggest moving from Jshint & jscs to pure eslint the local webteam has been using pure xo

Estimated time to migration: 3 hours

Test suite

Currently running Should JS

@dtolb
dtolb / creds.js
Created June 28, 2016 13:32
Javascript swap value
function checkValue(value) {
var userIdRegex = \u-\n;
var tokenRegex = \t-\n;
var secretRegex = \a\;
}
@dtolb
dtolb / st.xml
Created June 2, 2016 17:44
st.xml
<Response>
</Response>

Authoring with Viewsaurus

Recently I've been writing a few tutorials for Twilio, so far it was a pleasant experience. It's always funny to play with a well crafted API in the languages you like, right?

The tool we're using to write the tutorials made our work so easy, I really enjoyed working with viewsaurus.

If you need to use this package, here are the instructions to set up viewsaurus.

Assumptions

@dtolb
dtolb / token.md
Created May 18, 2016 17:33
Token

Making and receiving a call in the browser is done through a Bandwidth JavaScript library called BWClient. Using the BWClient library you will login for a given user/endpoint (e.g. webuser1 with password abc123 from above). For security reasons, you do not want the password exposed in the JavaScript code running in the browser.

Therefore, you will obtain an authorization token in your App Server and use that token to login.

To create an authorization token, use the following REST API:

POST /v1/users/<user-id>/domains/<domain-id>/endpoints/<endpoint-id>/tokens

returns

@dtolb
dtolb / goals.md
Last active June 3, 2016 19:37
5-5 goals
Site Percent Goal
Quora 3.49%
Medium 3.01%
GitHub 2.70%
Reddit 0.10%
Twitter 0.00%
@dtolb
dtolb / vref.md
Created April 26, 2016 17:32
Design Spec for Voice Reference App

Voice Reference App Spec

Creating a production level standard for voice calling & sip endpoints. The design patterns here should be what we want our customers to implement, as they WILL copy the patterns for their production applications.

High level functionality

  • Create New Users
  • Handle incoming/outgoing calls
  • WebRTC for each user
  • Mobile app registration / log-in
  • Single Domain for entire application - should include random string to prevent duplication
  • Single Catapult Application for entire voice ref app - should include random string to prevent duplication
@dtolb
dtolb / jssip.md
Last active April 17, 2025 14:03
JsSip Demo

JSSIP with Catapult API

⚠️ This has been updated at JsFiddle*

Prerequisites

  • Register for a Catapult (Bandwidth Application Platform) account here
  • Register a SIP domain
  • Create an endpoint/user
  • If you want to make calls to the PSTN (normal phones) you will need a server to handler events from Catapult
@dtolb
dtolb / goals.md
Last active April 21, 2016 18:51
Goals
Site Percent Goal
Quora 2.59%
Medium 2.96%
GitHub 1.72%