public FlickrPhotosExporter(AppCredentials appCredentials) { this.flickr = new Flickr(appCredentials.getKey(), appCredentials.getSecret(), new REST()); this.photosetsInterface = flickr.getPhotosetsInterface(); this.photosInterface = flickr.getPhotosInterface(); }
public FlickrPhotosImporter(AppCredentials appCredentials, JobStore jobStore) { this.jobStore = jobStore; this.flickr = new Flickr(appCredentials.getKey(), appCredentials.getSecret(), new REST()); this.uploader = flickr.getUploader(); this.imageStreamProvider = new ImageStreamProvider(); this.photosetsInterface = flickr.getPhotosetsInterface(); }
JSONObject jsono = new JSONObject(data); JSONObject c = jsono.getJSONObject(photos); JSONArray jarray = c.getJSONArray(photo); for (int i = 0; i < jarray.length(); i++){ Log.e("status3","status3"); JSONObject ph = jarray.getJSONObject(i); Flickr actor = new Flickr();
JSONObject jsono = new JSONObject(data); JSONObject jb = jsono.getJSONObject("photos"); JSONArray jarray = jb.getJSONArray("photo"); for (int i = 0; i < jarray.length(); i++){ Log.e("status3","status3"); JSONObject ph = jarray.getJSONObject(i); Flickr actor = new Flickr();
private static Flickr makeFlickr(FlickrAPIToken token) throws ParserConfigurationException { return new Flickr(token.apikey, token.secret, new REST()); } }
private static Flickr makeFlickr(FlickrAPIToken token) throws ParserConfigurationException { return new Flickr(token.apikey, token.secret, new REST()); } }
@Override public void setup(ImageCollectionConfig config) throws ImageCollectionSetupException { try { final String apikey = config.read("webpage.flickr.apikey"); final String secret = config.read("webpage.flickr.secret"); flickr = new Flickr(apikey, secret, new REST(Flickr.DEFAULT_HOST)); } catch (final Exception e) { throw new ImageCollectionSetupException("Faile to setup, error creating the flickr client"); } super.setup(config); }