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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Angular 2</title> | |
| <script src="https://unpkg.com/[email protected]/client/shim.min.js"></script> | |
| <script src="https://unpkg.com/[email protected]/dist/zone.js"></script> | |
| <script src="https://unpkg.com/[email protected]/Reflect.js"></script> | |
| <script src="https://unpkg.com/[email protected]/bundles/Rx.js"></script> | |
| <script src="https://unpkg.com/@angular/core/bundles/core.umd.js"></script> |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Angular 2</title> | |
| <script src="https://unpkg.com/[email protected]/client/shim.min.js"></script> | |
| <script src="https://unpkg.com/[email protected]/dist/zone.js"></script> | |
| <script src="https://unpkg.com/[email protected]/Reflect.js"></script> | |
| <script src="https://unpkg.com/[email protected]/bundles/Rx.js"></script> | |
| <script src="https://unpkg.com/@angular/core/bundles/core.umd.js"></script> |
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
| export default (request) => { | |
| const xhr = require('xhr'); | |
| const query = require('codec/query_string'); | |
| const apiKey = 'YOUR_API_KEY'; | |
| const apiUrl = 'http://api.giphy.com/v1/gifs/search'; | |
| const regex = /\/gif\s\(([^.?]*)\)|\/gif\s\w+/g; | |
| let textToAnalyze = request.message.text; |
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
| export default request => { | |
| let xhr = require('xhr'); | |
| let query = require('codec/query_string'); | |
| let clientToken = 'YOUR_CLIENT_TOKEN'; | |
| let apiUrl = 'https://api.mapbox.com/directions/v5'; | |
| let profile = request.message.profile; | |
| let lat1 = request.message.lat1; | |
| let lng1 = request.message.lng1; |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Angular 2</title> | |
| <script src="https://unpkg.com/[email protected]/client/shim.min.js"></script> | |
| <script src="https://unpkg.com/[email protected]/dist/zone.js"></script> | |
| <script src="https://unpkg.com/[email protected]/Reflect.js"></script> | |
| <script src="https://unpkg.com/[email protected]/bundles/Rx.js"></script> | |
| <script src="https://unpkg.com/@angular/core/bundles/core.umd.js"></script> |
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
| export default request => { | |
| let xhr = require('xhr'); | |
| let query = require('codec/query_string'); | |
| let clientToken = 'YOUR_CLIENT_TOKEN'; | |
| let apiUrl = 'https://api.mapbox.com/styles/v1/mapbox/streets-v8/static'; | |
| let zoom = request.message.zoom; | |
| let resolution = '300x200'; | |
| let lat = request.message.lat; |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Angular 2</title> | |
| <script src="https://unpkg.com/[email protected]/client/shim.min.js"></script> | |
| <script src="https://unpkg.com/[email protected]/dist/zone.js"></script> | |
| <script src="https://unpkg.com/[email protected]/Reflect.js"></script> | |
| <script src="https://unpkg.com/[email protected]/bundles/Rx.js"></script> | |
| <script src="https://unpkg.com/@angular/core/bundles/core.umd.js"></script> |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Angular 2</title> | |
| <script src="https://unpkg.com/[email protected]/client/shim.min.js"></script> | |
| <script src="https://unpkg.com/[email protected]/dist/zone.js"></script> | |
| <script src="https://unpkg.com/[email protected]/Reflect.js"></script> | |
| <script src="https://unpkg.com/[email protected]/bundles/Rx.js"></script> | |
| <script src="https://unpkg.com/@angular/core/bundles/core.umd.js"></script> |
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
| export default (request) => { | |
| const xhr = require('xhr'); | |
| const STAMPLAY_HOOK = 'YOUR_STAMPLAY_WEBHOOK_URL'; | |
| const reqBody = Object.assign({}, { type: 'block_event' }, request.message); | |
| const options = { | |
| method: 'POST', | |
| headers: { | |
| 'Accepts': 'application/json', | |
| 'Content-Type': 'application/json' |
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
| export default request => { | |
| let xhr = require('xhr'); | |
| let query = require('codec/query_string'); | |
| let clientToken = 'YOUR_CLIENT_TOKEN'; | |
| let apiUrl = 'https://api.diffbot.com/v3/analyze'; | |
| let queryParams = { | |
| token: clientToken, | |
| url: request.message.url |