summaryrefslogtreecommitdiff
path: root/plugins/YammerImport/scripts/yamdump.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-09-27 16:56:48 -0700
committerBrion Vibber <brion@pobox.com>2010-09-27 16:56:48 -0700
commitf528cc55488046c1ef58a8d95dd7f89d81c80cae (patch)
tree9db682e7fe94ec1484705910d91e7b0925a6325d /plugins/YammerImport/scripts/yamdump.php
parent585c7f35ca5141d85a8d2f20e9b62a99cbf03f4e (diff)
Yammer import API keys can now be overridden by the admin.
Diffstat (limited to 'plugins/YammerImport/scripts/yamdump.php')
-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);
-}