Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

flickr-following

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flickr-following - npm Package Compare versions

Comparing version
0.0.1
to
2.0.0
x

Sorry, the diff of this file is not supported yet

+16
A="$1"
echo '{
"name": "'"$A"'",
"version": "2.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}' > package.json
npm publish
+5
-23
{
"name": "flickr-following",
"version": "0.0.1",
"description": "List the people given user follows on Flickr",
"version": "2.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "node test"
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"flickr",
"photos",
"photography",
"api",
"client"
],
"repository": {
"url": "git@github.com:npm-flickr/flickr-following.git",
"type": "git"
},
"author": "azer",
"license": "BSD",
"dependencies": {
"flickr-client": "0.0.x"
},
"devDependencies": {
"with-env": "^0.1.0",
"prova": "^1.11.1"
}
"author": "",
"license": "ISC"
}

Sorry, the diff of this file is not supported yet

var createClient = require("flickr-client");
var client;
module.exports = setup;
function setup (options) {
client = createClient(options);
return following;
}
function following (userId, callback) {
client('contacts.getPublicList', { user_id: userId }, function (error, response) {
if (error) return callback(error);
callback(undefined, response.contacts.contact);
});
}
## flickr-following
List the people given user follows on Flickr
## Install
```bash
$ npm install flickr-following
```
## Usage
```js
var following = require('flickr-following')({
key: 'api-key'
})
following('user-id', function (error, users) {
users.length
// => 400
users[0]
{ "nsid": "49575362@N05", "username": "**mog**", "iconserver": "3770", "iconfarm": 4, "ignored": 0, "rev_ignored": 0 }
})
```
[flickr-client](http://github.com/npm-flickr/flickr-client) can be passed to avoid repeating auth options:
```js
var client = require('flickr-client')({
key: 'api-key'
});
var following = require('flickr-following')(client)
```