This file contains 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 accessKey = "YOUR_ACCESS_KEY"; | |
const bucketKey = "YOUR_BUCKET_KEY"; | |
const event = request.message.event; | |
const http_options = { | |
"method": "POST", |
This file contains 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 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 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
// | |
// NOTE: In Gupshup, your bot should have code like this: | |
// | |
// function HttpEndpointHandler(context, event) { | |
// context.sendResponse("Hello there, the current time is: " + new Date().toISOString()); | |
// } | |
// | |
export default (request) => { | |
const xhr = require('xhr'); |
This file contains 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 apiUrl = 'https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates'; | |
let queryParams = { | |
singleLine: request.message.text, | |
outFields: "*", | |
f: 'json' |
This file contains 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 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>Google Maps Example</title> | |
<script src="https://cdn.pubnub.com/sdk/javascript/pubnub.4.4.1.min.js"></script> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" /> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" /> | |
</head> | |
<body> | |
<div class="container"> |
This file contains 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 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 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) => { | |
var xhr = require('xhr'); | |
var accountId = 'YOUR_ACCOUNT_ID'; | |
var insightsKey = 'YOUR_INSIGHTS_KEY'; | |
var url = 'https://insights-collector.newrelic.com/v1/accounts/' | |
+ accountId + '/events'; | |
var params = { |