PHP code example of rezzza / flickr
1. Go to this page and download the library: Download rezzza/flickr library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rezzza / flickr example snippets
$metadata = new Rezzza\Flickr\Metadata('api key', 'secret');
$metadata->setOauthAccess('access token', 'access token secret');
$factory = new Rezzza\Flickr\ApiFactory($metadata, new Rezzza\Flickr\Http\GuzzleAdapter());
$xml = $factory->call('flickr.test.login');
$xml = $factory->call('flickr.photos.getInfo', array(
'photo_id' => 1337,
));
$factory->upload('path/to/photo.png', 'my title');