Method: M2X::Client::Key#regenerate

Defined in:
lib/m2x/key.rb

#regenerateObject

Regenerate an API Key token

Note that if you regenerate the key that you’re using for authentication then you would need to change your scripts to start using the new key token for all subsequent requests.

m2x.att.com/developer/documentation/v2/keys#Regenerate-Key



43
44
45
46
47
48
49
50
# File 'lib/m2x/key.rb', line 43

def regenerate
  res = @client.post("#{path}/regenerate", nil, {})

  if res.success?
    @path = nil
    @attributes = res.json
  end
end