Hi,
I am trying to get the environments in devconnect_developer_apps.module using the below code but the response is empty.
drupal_set_message(t("products list2 $api_product->environments"));
@AbdulRehman , Below code should work, You can access api_products using below function. As you can see it also has environments related information. Hope it helps.
$api_products = devconnect_developer_apps_get_api_products(); echo '<pre>'; print_r($api_products); echo '</pre>'; foreach ($api_products as $api_product) { drupal_set_message($api_product->displayName . " : Environments --> "); foreach($api_product->environments as $api_product_env) { drupal_set_message($api_product_env); } }
You can take a look at devconnect modules in profiles/apigee/modules/custom/devconnect to find how to access any edge related information. As you know, All the devconnect modules are in above location & you can find the APIs / Functions related to edge in above modules to access necessary information.
Hope it helps. Keep us posted if any.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |