How to externalise variiables using product as i m not getting from where to start and what to do.

 
0 3 98
3 REPLIES 3

Not applicable

can you give more information on what you want to do?

https://community.apigee.com/questions/74/custom-attributes-from-product.html

Something like this but i m not getting what to do. Like i need to create a proxy or what?? the basic mechanism i want is that hardcoding should be avoided instead of that variables can be taken by user.

Not applicable

Got your question.

Below are the steps you need to follow.

1. create a proxy in Apigee

2. create a product in Apigee.

3. Add the proxy to the product

4. Add the custom attributes in the product

5. create the developer app in Apigee

6. add the product to the developer app.

7. note the client key from the developer app

8. add api key verification policy to your proxy

9. After api key verification policy in the proxy you can access the custom attributes from the product using

verifyapikey.{verify-apikey_policy_name}.apiproduct.{custom_attribute_name_in_product}

10. Use the noted consumer key for api key verification in the proxy.

Note: The product custom attributes will be available only after the api key verification policy in the proxy and you have to access them using the avove varibale format.