Method: Wework::Api::Suite#signature
- Defined in:
- lib/wework/api/suite.rb
#signature(timestamp, nonce, encrypt) ⇒ Object
28 29 30 31 32 |
# File 'lib/wework/api/suite.rb', line 28 def signature(, nonce, encrypt) array = [suite_token, , nonce] array << encrypt unless encrypt.nil? Digest::SHA1.hexdigest array.compact.collect(&:to_s).sort.join end |