kameleo-io / local-api-client-typescript

Official JavaScript/TypeScript library for interacting with Kameleo Client
https://kameleo.io/learn-more/automation
MIT License
45 stars 2 forks source link

How to set WebGL Metadata from the Kameleo API? #7

Closed JonathanR25 closed 2 months ago

JonathanR25 commented 2 months ago

What would be the proper code syntax form to set the WebGL Metadata from the Kameleo API?

Also, could your provide some example code?

MBailey01 commented 2 months ago

Here is an example that you can use to set the WebGL Metadata through the API:

const createProfileRequest = BuilderForCreateProfile
  .forBaseProfile(chromeBaseProfileList[0].id)
  .setRecommendedDefaults()
  .setWebglMeta(
    'manual',
    {
      vendor: 'Google Inc. (AMD)',
      renderer: 'ANGLE (AMD Radeaon (TM) RX 560 Direct3D11 vs_5_0),
    },
  )
  .build();
const profile = await client.createProfile({ body: createProfileRequest });

These answers are provided from the Kameleo Set WebGL Metadata from API article.