Members
(static, constant) proxy
proxies any meraki API endpoint through this service. Supports user supplied API key header to override the instance defaults.
Example
const API_KEY = '123456789012345678901234567890';
const API_KEY2 = '098765432109876543210987654321';
const meraki = new MerakiService(API_KEY );
const proxyOptions = {
url: '/organizations',
method: 'get',
headers: {
"X-Cisco-Meraki-API-Key":API_KEY2
}
};
meraki.proxy(proxyOptions).then(res => {
console.log('Organizations proxied with custom API key header: ', res.data);
});