summaryrefslogtreecommitdiff
path: root/plugins/YammerImport/scripts
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-09-27 16:56:48 -0700
committerBrion Vibber <brion@pobox.com>2010-09-28 07:44:25 -0700
commit61fde6c8fff5201393db4496918fe193fe960c01 (patch)
treec811b9c4e9a17380259c979f77e16d5b61e5a555 /plugins/YammerImport/scripts
parent7d51cda25d7a056ffdf8e7928b4dfa958597067f (diff)
Yammer import API keys can now be overridden by the admin.
Diffstat (limited to 'plugins/YammerImport/scripts')
-rw-r--r--plugins/YammerImport/scripts/yamdump.php34
1 files changed, 0 insertions, 34 deletions
diff --git a/plugins/YammerImport/scripts/yamdump.php b/plugins/YammerImport/scripts/yamdump.php
deleted file mode 100644
index 944ee2e49..000000000
--- a/plugins/YammerImport/scripts/yamdump.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-
-if (php_sapi_name() != 'cli') {
- die('no');
-}
-
-define('INSTALLDIR', dirname(dirname(dirname(dirname(__FILE__)))));
-
-require INSTALLDIR . "/scripts/commandline.inc";
-
-// temp stuff
-require 'yam-config.php';
-$yam = new SN_YammerClient($consumerKey, $consumerSecret, $token, $tokenSecret);
-$imp = new YammerImporter($yam);
-
-/*
-$data = $yam->users();
-var_dump($data);
-// @fixme follow paging
-foreach ($data as $item) {
- $user = $imp->prepUser($item);
- var_dump($user);
-}
-*/
-
-$data = $yam->messages(array('newer_than' => 1));
-var_dump($data);
-// @fixme follow paging
-$messages = $data['messages'];
-$messages = array_reverse($messages);
-foreach ($messages as $message) {
- $notice = $imp->prepNotice($message);
- var_dump($notice);
-}