Install
Render
SUDOMOCK_API_KEY from the environment when no key is passed.
Source
Node.js
github.com/sudomock/sudomock-node
Python
github.com/sudomock/sudomock-python
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Official client libraries for Node and Python.
npm install sudomock
pip install sudomock
import SudoMock from 'sudomock'
const client = new SudoMock('sm_your_api_key')
const { mockups } = await client.psdMockups.list({ limit: 10 })
const render = await client.renders.create({
mockupId: mockups[0].uuid,
smartObjects: [{
uuid: mockups[0].smartObjects[0].uuid,
asset: { url: 'https://example.com/artwork.png' },
}],
exportOptions: { imageFormat: 'webp', imageSize: 1080 },
})
from sudomock import SudoMock
client = SudoMock(api_key="sm_your_api_key")
mockups = client.psd_mockups.list(limit=10)
render = client.renders.create(
mockup_uuid=mockups.mockups[0].uuid,
smart_objects=[{
"uuid": mockups.mockups[0].smart_objects[0].uuid,
"asset": {"url": "https://example.com/artwork.png"},
}],
)
SUDOMOCK_API_KEY from the environment when no key is passed.
Was this page helpful?