aboutsummaryrefslogtreecommitdiff
path: root/lib/phpFlickr/getToken.php
diff options
context:
space:
mode:
authorGreg Froese <greg.froese@gmail.com>2009-10-08 04:38:19 +0000
committerGreg Froese <greg.froese@gmail.com>2009-10-08 04:38:19 +0000
commit24f3f2f0d304254451c46a3b28a8e1f4678bc02f (patch)
treec95dc02130267e6c2d7053faf7546089c1c744b1 /lib/phpFlickr/getToken.php
parent6b00bdba17af611726eb950fb51758556694e80f (diff)
downloadelgg-24f3f2f0d304254451c46a3b28a8e1f4678bc02f.tar.gz
elgg-24f3f2f0d304254451c46a3b28a8e1f4678bc02f.tar.bz2
flickr integration
Diffstat (limited to 'lib/phpFlickr/getToken.php')
-rw-r--r--lib/phpFlickr/getToken.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/phpFlickr/getToken.php b/lib/phpFlickr/getToken.php
new file mode 100644
index 000000000..55180ea29
--- /dev/null
+++ b/lib/phpFlickr/getToken.php
@@ -0,0 +1,19 @@
+<?php
+ /* Last updated with phpFlickr 1.4
+ *
+ * If you need your app to always login with the same user (to see your private
+ * photos or photosets, for example), you can use this file to login and get a
+ * token assigned so that you can hard code the token to be used. To use this
+ * use the phpFlickr::setToken() function whenever you create an instance of
+ * the class.
+ */
+
+ require_once("phpFlickr.php");
+ $f = new phpFlickr("26b2abba37182aca62fe0eb2c7782050", "475e45cc580334da");
+
+ //change this to the permissions you will need
+ $f->auth("read");
+
+ echo "Copy this token into your code: " . $_SESSION['phpFlickr_auth_token'];
+
+?> \ No newline at end of file