Subscribe to the Open Guest plan to get access to the Developer section and Generate API Key.
Create an Access Token using POST /auth/token/. (See Documentation)
Create a link for a new Guest project for the 'Request Quote' button on your website to redirect your visitor.
function startMeasuring(){
const clientName = 'John Doe';
const clientEmail = 'john@doe.com';
const projectName = 'Measurements from John Doe';
const projectDescription = 'Client Name: ' + clientName + ', Client Email: ' + clientEmail;
const folderId = '[FOLDER_ID] '; // Optional, remove if you want the project to be created in the root folder
const apiKey = '[API_KEY]';
const token = getAccessToken(); // Using the Custom Token API POST https://api.measuremaponline.com/api/v1/auth/token (https://apidoc.measuremaponline.com/#681cc8ef-edfb-48e9-ac30-5e6055c3d3e0)
const url = 'https://app.measuremaponline.com/app/projects/guest/new?'
+ 'name=' + projectName
+ '&description=' + projectDescription // Project description can include any information you like to store for this project. (you can search by description in your repository)
+ '&folder_id=' + folderId // Optional, remove if you want the project to be created in the root folder
+ '&guest_name=' + clientName // Optional, you'll receive this information in the email notification
+ '&guest_email=' + clientName // Optional, you'll receive this information in the email notification
+ '&token=' + token;
window.open(url, '_blank');
}
Your potential customer can now measure and get estimates based on your preferences. You can check out the project live in your repository and manage the projects using REST API.
Subscribe to the Enterprise plan to get access to the Developer section and Generate API Key.
Link the Enterprise UID (User ID) you just created to a customer in your database. You can use the REST API to get the User info.
GET /users/:uid
Create a project and link it to your customer's content in your database.
POST /users/:uid/projects/new
Generate a Sign-in Token using the API to redirect your user to Measure Map Online with auto-signin, this way you don't have to share the credentials you created for each user in your Enterprise subscription. and link it to your customer's content in your database.
https://app.measuremaponline.com/?sit=TOKEN