Method: OneAndOne::SharedStorage#access

Defined in:
lib/1and1/shared_storage.rb

#accessObject



284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
# File 'lib/1and1/shared_storage.rb', line 284

def access

  # Build URL
  path = OneAndOne.build_url('/shared_storages/access')

  # Perform request
  response = @connection.request(:method => :get,
    :path => path,
    :headers => $header)

  # Check response status
  OneAndOne.check_response(response.body, response.status)

  #JSON-ify the response string
  JSON.parse(response.body)

end