Hello,
Can someone help me out on how to access an app custom attribute within a nodejs code using apigee-access npm?
I have an app with a custom attribute whose value I need to use within nodejs code.
Something like apigee.getVariable(request, appCustomAttributeValue);
@Tarun Jain:
As per the Apigee docs, you can access custom attribute defined in a developer app as follows --
apigee.getVariable(request, 'verifyapikey.{policy_name}.app.{app_custom_attribute_name}');
{policy_name} is the name you have given to the Verify API key policy.
For example, Lets assume you named your Verify API key policy as "cf_VerifyAccessKey".
{app_custom_attribute_name} is the custom attribute name you want the value for from the dev app.
For example, Lets assume you want the value for a custom attribute name - "senderID" defined in the dev app.
Your code should look like below:
apigee.getVariable(request, 'verifyapikey.cf_VerifyAccessKey.app.senderID');
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |