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
const INFOBIP_API_KEY = 'YOUR_API_KEY'; | |
const INFOBIP_API_URL = 'https://api.infobip.com/sms/1/text/single'; | |
const SUCCESSFUL_SMS_STATUS_GROUPS = [1, 3]; | |
const pubNub = require('pubnub'); | |
const xhr = require('xhr'); | |
function composeOptions(apiKey, body) { | |
return { | |
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
const XHR = require('xhr'); | |
const db = require('kvstore'); | |
const basicAuth = require('codec/auth'); | |
function fetchAccessToken(authUri, clientId, clientSecret) { | |
const auth = basicAuth.basic(clientId, clientSecret); | |
const httpOptions = { | |
method: 'POST', | |
body: 'grant_type=client_credentials&scope=ALL', | |
headers: { |
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) => { | |
const xhr = require('xhr'); | |
const query = require('codec/query_string'); | |
const userId = 'YOUR_USER'; | |
const apiKey = 'YOUR_API_KEY'; | |
const outputType = 'plain-text'; | |
let apiUrl = 'https://neutrinoapi.com/html-clean'; |
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
const xhr = require('xhr'); | |
const base64Codec = require('codec/base64'); | |
const crypto = require('crypto'); | |
export default (request) => { | |
// see https://apps.twitter.com | |
const consumerKey = "YOUR_CONSUMER_KEY"; | |
const consumerSecret = "YOUR_CONSUMER_SECRET"; | |
const accessToken = "YOUR_ACCESS_TOKEN"; | |
const oauthTokenSecret = "YOUR_OAUTH_TOKEN_SECRET"; |
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) => { | |
const xhr = require('xhr'); | |
const query = require('codec/query_string'); // for HTTP URL encoding | |
const auth = require('codec/auth'); // for HTTP Basic Auth | |
const base64 = require('codec/base64'); // for other custom schemes | |
const apiUrl = "https://api.duckduckgo.com/?"; | |
var queryString = query.stringify({ | |
q : request.message.text, |
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> |
NewerOlder