Open velara3 opened 8 months ago
On the following page the example code contains references to the domain "host" as shown here:
const libFiles = require('@adobe/aio-lib-files') const sdk = require('@adobe/aio-lib-photoshop-api') async function sdkTest() { try { // initialize sdk const files = await libFiles.init(); const client = await sdk.init('<ims org id>', '<api key>', '<valid auth token>', files) // call methods // auto cutout... const result = await client.createCutout('http://host/input.jpg', 'path/output.jpg') console.log(result)
This is not helpful to use example domains because there is no way to test if that code works or not because it's not pointing to a real example.
Please use real examples so we can know that when errors occur if it is our code.
Before:
const result = await client.createCutout('http://host/input.jpg', 'path/output.jpg') console.log(result)
After:
const result = await client.createCutout('http://www.adobe.com/test-psd.psd', 'path/output.jpg') console.log(result)
https://github.com/adobe/aio-lib-photoshop-api?tab=readme-ov-file#usage
On the following page the example code contains references to the domain "host" as shown here:
This is not helpful to use example domains because there is no way to test if that code works or not because it's not pointing to a real example.
Please use real examples so we can know that when errors occur if it is our code.
Before:
After:
https://github.com/adobe/aio-lib-photoshop-api?tab=readme-ov-file#usage