Method: Vng::SecurityToken.create

Defined in:
lib/vng/security_token.rb

.createObject



15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/vng/security_token.rb', line 15

def self.create
  body = {
    app_version: '1',
    company: 'Vonigo',
    username: Vng.configuration.username,
    password: Digest::MD5.hexdigest(Vng.configuration.password),
  }

  data = request path: PATH, body: body, include_security_token: false

  new token: data['securityToken']
end