
Product
Introducing the Alert Details Page: A Better Way to Explore Alerts
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.
cloudup-client
Advanced tools
Cloudup API client for nodejs.
$ npm install --save cloudup-client
var Cloudup = require('cloudup-client');
var client = Cloudup({
url: 'http://localhost:3000',
user: 'ewald',
pass: 'Dev1'
});
client
.stream({ title: 'Cloudup API' })
.file('Makefile')
.file('package.json')
.file('lib/client.js')
.file('lib/collection.js')
.file('lib/error.js')
.file('lib/item.js')
.save(function(){
console.log('upload complete');
});
Initialize a new client with the given options:
user basic auth usernamepass basic auth passwordtoken auth tokenuseragent user-agent nameRequest an auth token with the appId provided by Cloudup
upon app registration. This prevents the need to store a user's
username and password.
var client = new Cloudup({
user: 'tobi',
pass: 'Dev1'
});
client.requestToken('ah5Oa7F3hT8', function(err, tok){
if (err) throw err;
var client = new Cloudup({ token: tok });
client.streams(function(err, streams){
if (err) throw err;
console.log('streams:');
streams.forEach(function(stream){
console.log(' - %s', stream.title);
});
});
});
Get authenticated user information:
client.user(function(err, user){
console.log(user);
});
Create a new stream.
var stream = client.stream({ title: 'Photos' });
Or load an existing stream with its .id:
var stream = client.stream('cyswccQQZkw');
stream.load(function(){
console.log(stream);
});
Get an array of streams.
Get an array of streams with the given options:
title filter by titleInitialize a new Stream with the given options:
title optional Stream title string client
.stream({ title: 'Animals' })
.file('path/to/maru-1.jpg')
.file('path/to/maru-2.jpg')
.link('http://farm5.static.flickr.com/4131/5001570832_c1341f609f.jpg')
.save(function(err){
})
Alternatively pass the stream's id and invoke .load().
item (item) when an item is addedsave Stream savedend item uploads completeCheck if the stream is new.
Set prop's val with optional callback fn.
Create a new item in this stream.
var item = stream.item({ title: 'Maru the cat' })
Or load an existing item with its .id:
var item = stream.item('iyswccQQZkw');
item.load(function(){
console.log(item);
});
Upload file as an item.
client
.stream({ title: 'Images' })
.file('maru 1.png', { filename: 'Maru.png', })
.file('maru 2.png', { title: 'Awesome Maru' })
.file('maru 3.png')
Upload url as an item.
client
.stream({ title: 'Bookmarks' })
.link('http://ign.com', { title: 'IGN' })
.link('http://cuteoverload.com')
.link('http://uglyoverload.com')
Return JSON representation.
Upload concurrency.
Remove and invoke fn(err).
Load the stream and invoke fn(err, stream).
Save and invoke fn(err)
Emits "error" events with (err, item) if an item
fails to properly save. The callback of this method
is only invoked with an error related to creating
the stream itself.
Initialize a new Item with the given options:
title optional Item title stringfilename optional filename for .file()Alternatively pass the item's id and invoke .load().
Check if the stream is new.
Return JSON representation.
Queue file for uploading.
var stream = client.stream({ title: 'Animals' })
var item = stream.item({ title: 'Simon' })
item.file('path/to/simon.jpg')
Queue url for uploading.
var stream = client.stream({ title: 'Bookmarks' })
var item = stream.item({ title: 'Ign' })
item.file('http://ign.com')
Remove and invoke fn(err).
Set prop's val with optional callback fn.
Queue thumbnail path for the next .save(), or
upload immediately and invoke fn(err). When a callback fn
is given the item MUST have already been saved.
Create the remote item
and upload the associated
content, invoking fn(err).
Select a thumb by the given size string:
var thumb = item.thumbSize('1200x1200');
console.log(thumb.url);
Initialize a user.
Select an avatar by the given size string:
client.user(function(err, user){
var img = user.avatarSize('300x300').url;
});
FAQs
cloudup api client
We found that cloudup-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.

Product
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.

Research
Malicious PyPI package sympy-dev targets SymPy users, a Python symbolic math library with 85 million monthly downloads.