Skip to content

Instantly share code, notes, and snippets.

@byrnereese
byrnereese / gist:a52cc4e473f76b8a23c8e517d8237d7d
Created May 28, 2022 06:27
PHP PKCE RingCentral example
<?php
$USE_PKCE = True;
require_once(__DIR__ . '/vendor/autoload.php');
use RingCentral\SDK\Http\HttpException;
use RingCentral\SDK\Http\ApiResponse;
use RingCentral\SDK\SDK;
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
$dotenv->load();
session_start();
@byrnereese
byrnereese / glip.sh
Created March 3, 2020 22:52
A simple script to post a message to a Glip team via a "Glip Webhook URL"
#!/bin/sh
orig_args=$1
OPTIND=1
payload=""
needs_comma=false;
check_comma ()
{
if $needs_comma
then