This client requires a valid username and password with an acitvated license.
All calls to the https://api-cloud.genymotion.com/v1 require a valid token obtained after a succesfull login on the cloud.
The GenymotionCloud documentation can be found here: https://doc-api-cloud-staging.genymotion.com/index.html
This client is written in go. In order to execute it you need a proper go environnement setup.
- You can download go here: https://golang.org/dl/
- Setup you go workspace by defining the GOPATH environnement variable.
$ export GOPATH=<path/to/workspace>
- Clone this repository inside your go workspace.
- Build and install the app
$ go install cloud_client
- If all goes well a /bin directory with the binary should have appeared in your go workspace.
- Fill up the settings.ini file of this repo with proper credentials and copy it under
~/.config/CloudClient/settings.ini
- run the app!
If you have provided a valid settings.ini file, the client will be able to authenticate you on the cloud.
This is the default action when runnning the client without providing any action.
In order to interact with the Virtual Machines, an action and proper arguments need to be provided.
$ ./cloud_client -action=<action> arg1 arg2 ...
-
Signin works and token is extracted
https://doc-api-cloud-staging.genymotion.com/endpoints/api-auth.html#post-v1-users-signin -
Listing of currently running VMs is implemented
https://doc-api-cloud-staging.genymotion.com/endpoints/api-vmmanage.html#get-v1-instances -
Adb push and Adb install can be performed on a running VMs
https://doc-api-cloud-staging.genymotion.com/endpoints/api-vmmanage.html#post-v1-instances--instance_id--adb -
Starting and stopping Virtual Machines is implemented
https://doc-api-cloud-staging.genymotion.com/endpoints/api-vmmanage.html#instances