Skip to content

Instantly share code, notes, and snippets.

@dtolb
Created February 10, 2016 14:24
Show Gist options
  • Save dtolb/0038a9f5be8606f3cfbd to your computer and use it in GitHub Desktop.
Save dtolb/0038a9f5be8606f3cfbd to your computer and use it in GitHub Desktop.
Order number
// find your credentials http://ap.bandwidth.com/docs/security/
curl -v -X GET https://api.catapult.inetwork.com/v1/availableNumbers/local?areaCode=818 \
-u {YOUR_TOKEN}:{YOUR_SECRET} \
-H "Content-type: application/json"
//Fill in the number below with the number found above!!
curl -v -X POST https://api.catapult.inetwork.com/v1/users/{YOUR_USER_ID}/phoneNumbers \
-u {YOUR_TOKEN}:{YOUR_SECRET} \
-H "Content-type: application/json" \
-d '{"number": "+18183694547"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment