This is fork from https://github.com/dctabuyz/Yandex-API-PDD.ruby
Yandex api documerntation http://pdd.yandex.ru http://pdd.yandex.ru/help
$ gem install yandex-pdd
bundle install
token = 'abcd...'
pdd = Yandex::Pdd::new(token, [cert_file])
unless pdd.is_user_exists('test')
if pdd.create_user( 'test', 'secret-0123' )
puts 'user created'
else
puts 'error: ' + pdd.error.code
end
if pdd.delete_user('test')
puts 'user deleted'
else
puts 'error: ' + pdd.error.code
end
if (token = pdd.user_oauth_token('test', 'domain.tld'))
redirect_to pdd.passport(token, 'callback_url')
end
see the lib/yandex/pdd.rb for all methods