Skip to content

Instantly share code, notes, and snippets.

@rdegges
Created October 24, 2012 01:26
Show Gist options
  • Save rdegges/3943153 to your computer and use it in GitHub Desktop.
Save rdegges/3943153 to your computer and use it in GitHub Desktop.
OpenCNAM V2 YAML Example
$ curl https://api.opencnam.com/v2/phone/+16502530000?format=yaml
{created: !!python/unicode '2012-09-23T16:19:56.265300', name: !!python/unicode 'GOOGLE INC', number: !!python/unicode '+16502530000', price: 0, updated: !!python/unicode '2012-10-23T23:46:23.036676', uri: /v2/phone/%2B16502530000}
$ curl -H "Accept: text/yaml" https://api.opencnam.com/v2/phone/+16502530000
{created: !!python/unicode '2012-09-23T16:19:56.265300', name: !!python/unicode 'GOOGLE INC', number: !!python/unicode '+16502530000', price: 0, updated: !!python/unicode '2012-10-23T23:46:23.036676', uri: /v2/phone/%2B16502530000}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment