diff --git a/test/data/accountData.json b/test/data/accountData.json new file mode 100644 index 0000000000000000000000000000000000000000..4ffc2d98337c82313cea9359b41e2fa3a5eb7f8f --- /dev/null +++ b/test/data/accountData.json @@ -0,0 +1,38 @@ +{"io.cozy.accounts": + [ + { + "account_type": "grdfgrandlyon", + "auth": { + "credentials_encrypted": "bmFjbI7TqHf7FTj8b6T8JyV7ORUSYjziwua6bnbh0P3CE/3dJ9G0w6GdtmhbuqxAgqiQS/uqrZw=", + "login": "test" + }, + "identifier": "login", + "state": null + }, + { + "account_type": "eglgrandlyon", + "auth": { + "credentials_encrypted": "bmFjbHI5OoL+VNCT6JDFYea1dNiBGGNJM1zY0M4uWcjhALJcQT9uk9p9WPD7+1OryCAoYf9eaSE=", + "login": "test" + }, + "identifier": "login", + "state": null + }, + { + "account_type": "enedisgrandlyon", + "name": "", + "oauth": { + "access_token": "", + "expires_at": "2020-06-16T04:17:03.285910671+02:00", + "refresh_token": "", + "token_type": "Bearer" + }, + "oauth_callback_results": { + "issued_at": "1592232569642", + "refresh_token_issued_at": "1592232569642", + "scope": "/v4/metering_data/production_load_curve.GET /v3/customers/usage_points/addresses.GET /v4/metering_data/consumption_load_curve.GET /v3/customers/usage_points/contracts.GET /v4/metering_data/daily_production.GET /v4/metering_data/daily_consumption.GET /v4/metering_data/daily_consumption_max_power.GET /v3/customers/identity.GET", + "usage_points_id": "" + } + } + ] +} \ No newline at end of file diff --git a/test/importAccount.bat b/test/importAccount.bat new file mode 100644 index 0000000000000000000000000000000000000000..422527a01294153da2dd0ed71db8017bee897900 --- /dev/null +++ b/test/importAccount.bat @@ -0,0 +1,4 @@ +@echo off +echo Please provide cozysessid (can be found after connection in browser dev tool) +set /p token="CozySessid ? : " +ACH -t %token% import ./data/accountData.json