Skip to content

Instantly share code, notes, and snippets.

@heylookltsme
Created August 20, 2019 19:21
Show Gist options
  • Save heylookltsme/5cb16f7eea949a765ff0a0f3b8405923 to your computer and use it in GitHub Desktop.
Save heylookltsme/5cb16f7eea949a765ff0a0f3b8405923 to your computer and use it in GitHub Desktop.
<?php
require_once(dirname(__DIR__) . '/cron/vimeo.cron.init.php');
Vimeo\Base\Application\VimeoApplication::startup(Vimeo\Base\Application\VimeoApplication::MODE_CRON);
Vimeo\Base\Cache::disableInstanceCache();
Vimeo\Base\Application\VimeoApplication::enableCaching(false);
$config = Vimeo\Base\Application\VimeoApplication::getConfig();
$client_id = $config->get('salesforce.mct.id');
$client_secret = $config->get('salesforce.mct.secret');
$mc_client = new \Vimeo\Ems\MCTransactionalClient($client_id, $client_secret);
$user = \User::load(1702085);
// $user->sendPasswordReset(false, $user->getEmail());
echo "\n\n";
echo \Vimeo\Mail\MailMCTransactional::TPL_FORGOT_PASSWORD['template_id'];
// exit;
$res = $mc_client->sendEmail('corinne@vimeo.com', \Vimeo\Mail\MailMCTransactional::TPL_FORGOT_PASSWORD['template_id']);
echo "\n\n";
var_dump($res->json());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment