Get all developers email who are subscribed to a product

acharyadr
Participant II

Is there a way to get all the developers email address who are subscribed to a certain product? I want to send emails to all developers who are using certain product about the changes happening to that product/proxy.

Solved Solved
1 2 851
1 ACCEPTED SOLUTION

Yes!

(Sorry this is such a late answer)

There's not a single API to do what you want.

But by scripting the various Apigee Edge APIs together, you can get the information.

And here is an example of how to do that: findAppForApiProduct.js

This is a nodejs script that

  • inquires all the apps
  • filters those apps for the ones that are approved for a specific API Product
  • inquires the developer owners of those apps
  • prints the resulting list of developers and their apps

You need nodejs to run it.

View solution in original post

2 REPLIES 2

There is not an easy way to "see" that information in the Apigee Admin UI.

Logically, the search you want to perform is like this:

For each developer
   for each app
     for each credential 
        for each product
           if (product = "myProduct") ... match

For a working example, you can use this command-line tool that relies on node.js

Example:

$ node ./findAppForApiProduct.js  -n -o myorg -P Hotels1 -D
Apigee Edge findAppForApiProduct.js tool, version: 20180109-1526
Node.js v7.7.1

[2018-Feb-02 14:09:00] start
[2018-Feb-02 14:09:00] searching...
[2018-Feb-02 14:09:02] total count of apps for that org: 17
[2018-Feb-02 14:09:02] count of Apps containing Hotels1 (3)
[2018-Feb-02 14:09:02] 0: /v1/o/myorg/developers/RGUTJFpq31DpkW6b/apps/HotelsApp2
[2018-Feb-02 14:09:02] 1: /v1/o/myorg/developers/sYXHE2H6xMpGGmmJ/apps/HotelsApp3
[2018-Feb-02 14:09:02] 2: /v1/o/myorg/developers/EUaskGb61YiwTBTW/apps/HotelsApp1
[2018-Feb-02 14:09:02] Developers who manage these Apps (3):
[2018-Feb-02 14:09:03] gnanasekaran@google.com
[2018-Feb-02 14:09:03] gkidiyoor@apigee.com
[2018-Feb-02 14:09:03] Dvalentino@example.org

Yes!

(Sorry this is such a late answer)

There's not a single API to do what you want.

But by scripting the various Apigee Edge APIs together, you can get the information.

And here is an example of how to do that: findAppForApiProduct.js

This is a nodejs script that

  • inquires all the apps
  • filters those apps for the ones that are approved for a specific API Product
  • inquires the developer owners of those apps
  • prints the resulting list of developers and their apps

You need nodejs to run it.