Skip to content

Instantly share code, notes, and snippets.

View bdeanindy's full-sized avatar

Benjamin Dean bdeanindy

View GitHub Profile

Keybase proof

I hereby claim:

  • I am bdeanindy on github.
  • I am bdeanindy (https://keybase.io/bdeanindy) on keybase.
  • I have a public key ASDPjnkOjCLdpArozFwcDUGUkBDR43ol0ZepP8-TXdXsNAo

To claim this, I am signing this object:

@bdeanindy
bdeanindy / zoom-data-compliance-request.txt
Created January 8, 2019 13:56
Zoom Marketplace - Data Compliance API Request
POST /api/v2/oauth/data/compliance HTTP/1.1
Host: https://zoom.us
Content-Type: application/json
Authorization: Basic
{
"client_id": "string", //from webhook event
"user_id": "string", //from webhook event
"account_id":"string", //from webhook event
"deauthorization_event_received":{
@bdeanindy
bdeanindy / zoom-web-sdk-node-generate-signature-module.js
Last active February 4, 2021 17:13
Programming in Node.js and using Zoom Web SDK? Here is an example utility module to generate the signature as required, and documented here (in PHP): https://zoom.github.io/zoom-sdk-web/global.html#generate_signature
'use strict';
// Determine if crypto support is available
let crypto;
try {
crypto = require('crypto');
} catch (err) {
console.error('crypto support is unavailable');
throw err;
}
@bdeanindy
bdeanindy / ringcentralSend2faViaSMS.js
Created March 10, 2016 10:59
Example of sending 2FA code via SMS using RingCentral JS SDK
/**
Just for example's sake, this would most-likely receive
429 HTTP responses if used in production.
Should cache the access_token and re-use in a more
modular fashion, but it helps explain the idea better.
**/
// Instantiate the RingCentral SDK
var sdk = new RingCentral.SDK({
server: 'https://platform.devtest.ringcentral.com', // SANDBOX
@bdeanindy
bdeanindy / SparkPost cURL Create (POST) Transmissions API Example
Last active September 30, 2020 11:32
cURL POST Example to send an email using the SparkPost Transmissions API
curl \
-H "Content-Type: application/json" \
-H "Authorization: <REPLACE_WITH_YOUR_API_KEY>" \
-X POST -d '{"options":{"open_tracking":true,"click_tracking":true},"return_path":"bounces@<REPLACE_WITH_YOUR_SENDING_DOMAIN_HERE>","metadata":{"some_useful_metadata":"testing_sparkpost"},"substitution_data":{"signature":"<REPLACE_WITH_YOUR_FIRST_AND_LAST_NAME>"},"recipients":[{"address":{"email":"<REPLACE_WITH_YOUR_EMAIL_ADDRESS>","tags":["learning"],"substitution_data":{"customer_type":"Platinum","first_name":"<REPLACE_WITH_YOUR_FIRST_NAME>"}}}],"content":{"from":{"name":"Awesome Company","email":"testing@<REPLACE_WITH_YOUR_SENDING_DOMAIN>"},"subject":"My first SparkPost Transmission","reply_to":"Awesome Company ","text":"Hi {{address.first_name}}\r\nYou have just sent your first email through SparkPost!\r\nCongratulations,\r\n{{signature}}","html":"<strong>Hi {{address.first_name}},</strong><p>You have just sent your first email through SparkPost!</p><p>Congratulations!</p>{{signature}}"}}' \
https://api.sparkpos