@musallam/photoshop-client
v4.1.1
Published
TypeScript client library for Adobe Photoshop API
Downloads
306
Maintainers
Readme
@musallam/photoshop-client
TypeScript client library for the Adobe Photoshop API.
This package is part of the firefly-services-clients monorepo.
Features
- 🚀 Full TypeScript support with auto-generated types from OpenAPI spec
- 📦 API coverage for major Adobe Photoshop endpoints
- 🔄 Async job polling utilities for long-running operations
- 🔐 Built-in authentication via IMS client
- 📝 Comprehensive documentation and usage examples
Installation
npm install @musallam/photoshop-clientQuick Start
import {
PhotoshopClient,
PHOTOSHOP_AXIOS_INSTANCE,
TokenIMSClient,
} from '@musallam/photoshop-client';
// 1. Setup authentication
const imsClient = new TokenIMSClient({
clientId: 'YOUR_CLIENT_ID',
clientSecret: 'YOUR_CLIENT_SECRET',
scopes: ['openid', 'creative_sdk', 'AdobeID'],
});
// 2. Configure axios instance
PHOTOSHOP_AXIOS_INSTANCE.interceptors.request.use(async (config) => {
const token = await imsClient.getAccessToken();
config.headers.Authorization = `Bearer ${token}`;
config.headers['x-api-key'] = 'YOUR_CLIENT_ID';
return config;
});
// 3. Use the client
const jobs = await PhotoshopClient.getJobs({
limit: 10,
});
console.log(jobs);API Coverage
Jobs
getJobs()- List jobs for your accountcreateJob()- Submit a new Photoshop jobgetJob()- Retrieve details about a specific jobcancelJob()- Cancel an in-progress job
Documents
getDocument()- Retrieve a Photoshop documentcreateDocument()- Create a new documentupdateDocument()- Update or edit an existing document
For full API reference and advanced usage, see: https://ahmed-musallam.github.io/firefly-services-clients/photoshop-client/
