Class: Wework::Api::Provider

Inherits:
Base
  • Object
show all
Includes:
Methods::Provider, Cipher
Defined in:
lib/wework/api/provider.rb

Constant Summary

Constants included from Cipher

Cipher::BLOCK_SIZE, Cipher::CIPHER

Instance Attribute Summary collapse

Attributes inherited from Base

#corp_id, #options, #secret

Instance Method Summary collapse

Methods included from Cipher

#decrypt, #encrypt, #generate_xml, #msg_decrypt, #msg_encrypt, #pack, #signature, #unpack

Methods included from Methods::Provider

#get_login_info, #get_register_code, #get_register_url, #sso_authorize_url

Methods inherited from Base

#access_token, #get, #post, #post_file, #request, #valid?

Methods included from Methods::Batch

#batch_getresult, #batch_invite, #batch_replaceparty, #batch_replaceuser, #batch_syncuser

Methods included from Methods::Crm

#crm_get_external_contact

Methods included from Methods::Tag

#tag_addtagusers, #tag_create, #tag_delete, #tag_deltagusers, #tag_get, #tag_list, #tag_update

Methods included from Methods::Department

#department_create, #department_delete, #department_list, #department_update

Methods included from Methods::User

#authsucc, #convert_to_openid, #convert_to_userid, #user_batchdelete, #user_create, #user_delete, #user_get, #user_list, #user_simplelist, #user_update

Methods included from Methods::Media

#get_media_url, #media_get, #media_upload

Constructor Details

#initialize(options = {}) ⇒ Provider

Returns a new instance of Provider.



9
10
11
12
13
# File 'lib/wework/api/provider.rb', line 9

def initialize(options={})
  @token = options.delete(:token)
  @encoding_aes_key = options.delete(:encoding_aes_key)
  super(options)
end

Instance Attribute Details

#encoding_aes_keyObject (readonly)

Returns the value of attribute encoding_aes_key.



7
8
9
# File 'lib/wework/api/provider.rb', line 7

def encoding_aes_key
  @encoding_aes_key
end

#tokenObject (readonly)

Returns the value of attribute token.



7
8
9
# File 'lib/wework/api/provider.rb', line 7

def token
  @token
end