Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tadatuta/fotki
node.js module for Yandex.Fotki API
https://github.com/tadatuta/fotki
Last synced: 30 days ago
JSON representation
node.js module for Yandex.Fotki API
- Host: GitHub
- URL: https://github.com/tadatuta/fotki
- Owner: tadatuta
- Created: 2013-05-10T15:01:49.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-01-14T10:31:06.000Z (almost 8 years ago)
- Last Synced: 2024-10-05T08:39:36.021Z (about 1 month ago)
- Language: JavaScript
- Size: 69.3 KB
- Stars: 4
- Watchers: 4
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
fotki
=====USAGE
-----```javascript
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);
});
```