Socket
Socket
Sign inDemoInstall

yandex-photos

Package Overview
Dependencies
28
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    yandex-photos

API wrapper for Yandex Photos


Version published
Weekly downloads
0
Maintainers
1
Install size
4.25 MB
Created
Weekly downloads
 

Readme

Source

yandex-photos NPM version Build Status Dependency Status

Client for Yandex Photos service API.

Usage

var fs = require('fs');

var photos = require('yandex-photos').client(token);

photos.upload(fs.createReadStream('picture.jpg'), {
    album: 'urn:yandex:fotki:alekna:album:197816'
}, function (err, result) {
    console.log(result);
});

API

client(user, oauth, [options])

Creates client to Yandex Photos API.

user

Type: String
Contains user name of oauth token.

oauth

Type: String
Contains oauth token from OAuth authorization procedure.

options
api

Type: String
Default: api-fotki.yandex.ru/api

Address of Yandex Photos API.

protocol

Type: String
Default: http

client.upload(file, [options], cb)

Uploads photo to Yandex Photos.

file

Type: Buffer or Stream
Contents of photo.

options

Type: Object
Options for upload.

options.album

Type: String

options.title

Type: String

options.summary

Type: String

License

MIT (c) 2014 Vsevolod Strukchinsky

Keywords

FAQs

Last updated on 10 Apr 2015

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc