Class: ServiceHelper
- Inherits:
-
Object
- Object
- ServiceHelper
- Defined in:
- lib/jpush/util/service_helper.rb
Constant Summary collapse
- @@BASIC_PREFIX =
'Basic'
Class Method Summary collapse
Class Method Details
.getAuthorizationBase64(appKey, masterSecret) ⇒ Object
5 6 7 8 9 |
# File 'lib/jpush/util/service_helper.rb', line 5 def self.getAuthorizationBase64(appKey, masterSecret) encodeKey = appKey + ":" + masterSecret return @@BASIC_PREFIX + " " + Base64.strict_encode64(encodeKey) end |