Line | |
---|
1 | <?php |
---|
2 | /* Last updated with phpFlickr 1.4 |
---|
3 | * |
---|
4 | * If you need your app to always login with the same user (to see your private |
---|
5 | * photos or photosets, for example), you can use this file to login and get a |
---|
6 | * token assigned so that you can hard code the token to be used. To use this |
---|
7 | * use the phpFlickr::setToken() function whenever you create an instance of |
---|
8 | * the class. |
---|
9 | */ |
---|
10 | |
---|
11 | require_once("phpFlickr.php"); |
---|
12 | $f = new phpFlickr("<api key>", "<secret>"); |
---|
13 | |
---|
14 | //change this to the permissions you will need |
---|
15 | $f->auth("read"); |
---|
16 | |
---|
17 | echo "Copy this token into your code: " . $_SESSION['phpFlickr_auth_token']; |
---|
18 | |
---|
19 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.