Genymobile / genymotion-device-web-player

Genymotion Virtual Device Web Player
https://www.genymotion.com/
MIT License
104 stars 34 forks source link

Update the example to use the latest apis for fetching recipes and accessing instances. #111

Closed caarmen closed 1 month ago

caarmen commented 1 month ago

Description

~☝🏻 This is currently based on top of #112. It should be rebased on main after #112 is merged.~

Accessing instances

See the documentation for POST /v1/instances/access-token: https://developer.genymotion.com/saas/#tag/Instances-v1/operation/accessToken

It has an instance_uuid request payload field.

Text clarification

Now that an instance uuid is required to connect to a SaaS instance, clarify that:

Tests

Tested accessing a device: Platform By launching from the example By connecting to already launched device
SaaS image image
Device Image N/A Help πŸ˜…

Fetching recipes

Use the GET /v3/recipes/ route to retrieve recipes.

See the documentation: https://developer.genymotion.com/saas/#tag/Recipes-v3/operation/listRecipesV3

Tests

Note that the v3 recipes route returns recipes in a flat list.

Before After
Screenshot from 2024-09-26 14-55-44 image

Type of change

Checklist

caarmen commented 1 month ago

Rebased on main to get changes from:

caarmen commented 1 month ago

Rebased on main to get changes from: