Skip to content

vickodin/yandex-pdd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is fork from https://github.com/dctabuyz/Yandex-API-PDD.ruby

Yandex::Pdd

Yandex api documerntation http://pdd.yandex.ru http://pdd.yandex.ru/help

Installation

$ gem install yandex-pdd
bundle install

Usage

token = 'abcd...'
pdd = Yandex::Pdd::new(token, [cert_file])

new user

unless pdd.is_user_exists('test')
  if pdd.create_user( 'test', 'secret-0123' )
  puts 'user created'
else
  puts 'error: ' + pdd.error.code
end

delete user

if pdd.delete_user('test')
  puts 'user deleted'
else
  puts 'error: ' + pdd.error.code
end

authorizaion

if (token = pdd.user_oauth_token('test', 'domain.tld'))
  redirect_to pdd.passport(token, 'callback_url')
end

other methods

see the lib/yandex/pdd.rb for all methods

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages