public OvhApi(final String root, final String AK, final String AS, final String CK)
	{
		this.root = root;
		this.AK = AK;
		this.AS = AS;
		this.CK = CK;

		try
		{
			URL url = new URL(this.root + "/auth/time");
			HttpURLConnection conn = (HttpURLConnection) url.openConnection();
			conn.setRequestMethod("GET");
			conn.setRequestProperty("Accept", "application/json");

			if (conn.getResponseCode() != 200) {
				throw new RuntimeException("Failed : HTTP error code : "
						+ conn.getResponseCode());
			}

			BufferedReader br = new BufferedReader(new InputStreamReader(
					(conn.getInputStream())));

			String output;
			StringBuilder outputData = new StringBuilder();
			while ((output = br.readLine()) != null) {
				outputData.append(output);
			}
			conn.disconnect();
			
			this.timeDrift = (new Date().getTime() / 1000) - Long.parseLong(outputData.toString());
		}
		catch( NumberFormatException e){
			System.err.println("Error in parsing server time to long !");
			e.printStackTrace();
		}
		catch (MalformedURLException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}