I am using hosted targets in Apigee and I am not able extract query params in index.js.
Have tried as below but no luck,
Anyone has idea on how to retrieve? Please help
var http = require(‘http’);
var AWS=require(‘aws-sdk’);
var AmazonCognitoIdentity=require(‘amazon-cognito-identity-js-node’);
var jwt = require(‘jsonwebtoken’);
var apigee = require(‘apigee-access’);
var express = require(‘express’);
console.log(‘node.js application starting…’);
console.log(process.env);
var app = express();
It is possible to get query parameters in Hosted Targets; however, we do not support the “apigee-access” module. If you would like to mimic the apigee-access functionality, please take a look at the “Is it possible to work around the lack of apigee-access?” in our FAQs
But If I understand your question right, this is an example hosted target app that can retrieve query params: