(Alternatively the SDK could return an object / map where the key is the name and value is full provider name so it can be passed directly into perform.)
Rationale
For domains like hospitality and social media, we need an explicit control over the passed-in provider. However, if the profiles are sufficiently generic enough, the implementation could be completely driven by the configuration. Take for example our social-media-demo where we need to resort to manual listing of supported providers. Having an easy access to the configured providers would help to make the code even more generic.
Other use-case is for handling incoming webhooks, where I'd like to proactively validate whether there is a map for the given profile instead of invoking an exception when asking for non-existent provider.
Given a profile name, I would like to get a list of configured providers. For example:
(Alternatively the SDK could return an object / map where the key is the name and value is full provider name so it can be passed directly into
perform
.)Rationale
For domains like hospitality and social media, we need an explicit control over the passed-in provider. However, if the profiles are sufficiently generic enough, the implementation could be completely driven by the configuration. Take for example our social-media-demo where we need to resort to manual listing of supported providers. Having an easy access to the configured providers would help to make the code even more generic.
Other use-case is for handling incoming webhooks, where I'd like to proactively validate whether there is a map for the given profile instead of invoking an exception when asking for non-existent provider.