This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /* | |
| * Expected JSON response | |
| * { | |
| * "to": "+11112223333" , | |
| * "quote" : "Lorem Ipsum", | |
| * "author" : "Someone famous" | |
| * } | |
| */ | |
| module.exports = function(context, cb) { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | module.exports = function(context, cb) { | |
| var Stamplay = require('stamplay'); | |
| var stamplay = new Stamplay('APP_ID', 'APP_SECRET'); | |
| stamplay.Object('subscription').get({page:1, per_page:100, status:true}, function(err, res) { | |
| var result = JSON.parse(res); | |
| result.data.forEach(function(subscription) { | |
| console.log("sending sms to " + subscription.number); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var stamplay = { | |
| name : "Stamplay", | |
| description: "The best thing ever", | |
| address : "814 Mission st, San Francisco", | |
| _geolocation : { | |
| type: "Point", | |
| coordinates: [-122.404952, 37.784445] | |
| } | |
| }; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | module.exports = function(context, cb) { | |
| // request - fetch data from openweather API | |
| var request = require("request"); | |
| // moment - easily transform timestamps into formatted dates | |
| var moment = require('moment'); | |
| // http://home.openweathermap.org | |
| var APPID = "__YOUR_OPENWEATHER_API_KEY__"; | |
| // type is used to find if the user wants the current weather or upcoming forecast. | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | { | |
| "name": { | |
| "fullName": "{{person.body.body.person.name.fullName}}", | |
| "givenName": "{{person.body.body.person.name.givenName}}", | |
| "familyName": "{{person.body.body.person.name.familyName}}" | |
| }, | |
| "employment": { | |
| "domain": "{{person.body.body.person.employment.domain}}", | |
| "name": "{{person.body.body.person.employment.name}}", | |
| "title": "{{person.body.body.person.employment.title}}", | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | [ | |
| { | |
| "fallback": "New Signup!.", | |
| "color": "#414b82", | |
| "title": "{{person.body.body.person.name.fullName}}", | |
| "fields": [ | |
| { | |
| "title": "Bio", | |
| "value": "{{person.body.body.person.bio}}", | |
| "short": false | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /** | |
| * Replace $.ajax on your subdomain with a copy taken | |
| * from your base domain. All jQuery AJAX actions go | |
| * through $.ajax (i.e. $.get, $.post), so it's all good. | |
| */ | |
| (function() { | |
| var iframe, | |
| onload, | |
| queue = [], | 
NewerOlder