Integration Requirements
This page outlines the key requirements for integrating with the BOGOS app. Please read this page carefully before moving to any other pages.
1. BOGOS app installed
Install BOGOS app: https://apps.shopify.com/freegifts
Please refer to BOGOS' Demo store for all features demo: Demo store
2. URL API Integration: https://api.freegifts.io/
3. Hide gift product (cloned product)
Hide Gift/Cloned product by tag: "bogos-gift" or handle "*-sca_clone_freegift"
4. MIDDLEWARE
Add this header for authorization
Header
{
authorization: "Bearer $token",
verify: ""; //contact BOGOS for help
}
How to get $token (using jsonwebtoken or jwt-encode)
const jwt = require('jsonwebtoken');
const payload = {
integration: '' //contact BOGOS for help
};
const secretKey = 'secret_key'; //contact bogos for secret_key
const token = jwt.sign(payload, secretKey, {expiresIn: 120});
Last updated