Skip to content

Instantly share code, notes, and snippets.

View YoshiteruIwasaki's full-sized avatar

Yoshiteru Iwasaki YoshiteruIwasaki

View GitHub Profile
@YoshiteruIwasaki
YoshiteruIwasaki / index.php
Created November 19, 2020 13:35
Intercom Conversations CSV Export
<?php
require_once "vendor/autoload.php";
ini_set('memory_limit', '-1');
date_default_timezone_set('Asia/Tokyo');
$filename = "intercom_conversations.csv";
use Intercom\IntercomClient;
$client = new IntercomClient('<YOUR API KEY>');
@YoshiteruIwasaki
YoshiteruIwasaki / fondesk-assistant.js
Last active March 15, 2021 02:32
fondeskの投稿に対してメンションを追加するGoogle Apps Script
function doPost(e) {
var channel = 'XXXXXXXX'; // fondeskの通知先チャンネル
var url = 'https://hooks.slack.com/services/XXXXXXXX'; // Incoming Webhook URL
var TOKEN = 'XXXXXXXX'; // Verification Token
var botId = 'XXXXXXXX'; //fondeskのアプリのBOT ID
var historySave = true; //データをスプレッドシートに保存する
var sheetName = 'list'; //名簿リストのスプレッドシート名
var historySheetName = 'history'; //入電履歴のスプレッドシート名
var suppressedSheetName = 'suppressed'; //営業電話のスプレッドシート名