Class: Weibo2::Interface::Register

Inherits:
Base
  • Object
show all
Defined in:
lib/weibo2/interface/register.rb

Overview

Register API

Instance Method Summary collapse

Methods inherited from Base

#get, #initialize, #post, #request

Constructor Details

This class inherits a constructor from Weibo2::Interface::Base

Instance Method Details

#verify_nickname(nickname) ⇒ Object

验证昵称是否可用,并给予建议昵称

Parameters:

  • nickname (String)

    需要验证的昵称。4-20个字符,支持中英文、数字、“_”或减号

See Also:



14
15
16
# File 'lib/weibo2/interface/register.rb', line 14

def verify_nickname(nickname)
  get 'register/verify_nickname.json', :params => {:nickname => nickname}
end