Untitled

The following example shows how to call the MockupsJar API.

import axios from 'axios';

axios({
    method: 'post',
    url: `${BASE_URL}/mockups/render/13-inch-macbook-pro-with-flower`,
    headers: {'Authorization': 'Bearer ' + API_TOKEN},
    data: {
        zoomLevel: 1,
        format: "jpg",
        input: [
            '<https://walletapi.cloud/>',
        ]
    }
})
    .then((response) => {
        console.log('response', response.data);

        if (response.status === 200 && response.data.data.status === 'successful') {
            downloadImage(response.data.data.result.url);
        } else {
            console.warn('Invalid response');
        }
    })

Import templates (photoshop)

Authentication

Get info

Get templates

Simple render

Upload assets

Samples (node, py, ..)