From 2bcbb0223a7675381be24cc407f8121652f82713 Mon Sep 17 00:00:00 2001 From: Chris DeLuca Date: Fri, 8 Jan 2016 00:08:40 -0500 Subject: [PATCH] Add syntax highlighting to readme code samples --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 1d12da4..3d0b032 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Textbelt uses carrier-specific gateways to deliver your text messages for free, Send a text with a simple POST request: -``` +```sh $ curl -X POST http://textbelt.com/text \ -d number=5551234567 \ -d "message=I sent this message for free with textbelt.com" @@ -16,7 +16,7 @@ $ curl -X POST http://textbelt.com/text \ ### Success and Failure Sample success: -``` +```json {"success":true} ``` @@ -24,7 +24,7 @@ Note that success means that the message was sent to Textbelt's list of provider Sample failure: -``` +```json {"success":false,"message":"Exceeded quota for this phone number."} ``` @@ -36,7 +36,7 @@ project. The only requirement is unix/posix `sendmail`, used to forward the mess For example, to send a text using the default settings: -``` +```js var text = require('textbelt'); text.send('9491234567', 'A sample text message!', undefined, function(err) { @@ -48,7 +48,7 @@ text.send('9491234567', 'A sample text message!', undefined, function(err) { You can also supply a region (valid choices are `us`, `intl`, or `canada`) -``` +```js var text = require('textbelt'); // Canada