0.0.3 • Published 9 years ago

fotki v0.0.3

Weekly downloads
2
License
-
Repository
github
Last release
9 years ago

fotki

USAGE

fotki.auth('username', 'OAuth token');

fotki.getServiceDocument().then(function(doc) {
    console.log(doc);
});

fotki.getAlbums().then(function(albums) {
    albums.entries.forEach(function(album) {
        console.log('album', album);
    });
});

fotki.createAlbum('testAlb', 'test album summary').then(function(album) {
    console.log(album);
});

fotki.getAlbum({ title: 'testAlb' }).then(function(album) {
    console.log('album', album);
});

fotki.getPhotosByAlbumTitle('testAlb').then(function(photos) {
    photos.entries.forEach(function(photo) {
        console.log(photo.img.orig.href);
    });
});

fotki.getPhotosByAlbumId('urn:yandex:fotki:tadatuta:album:197961').then(function(photos) {
    photos.entries.forEach(function(photo) {
        console.log(photo.img.orig.href);
    });
});

fotki.uploadPhotoToAlbum({ title: 'testAlb' }, 'img.png').then(function(photo) {
    console.log('photo', photo);
});
0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

11 years ago