methode mapping

17 views
Skip to first unread message

Tonton

unread,
Jan 23, 2018, 11:26:08 AM1/23/18
to django...@googlegroups.com
hello i need to call multiple api with different methode name for the same informations.

i 'd like to create somme dictionnaire or some things call vocabulary that easy to add api provider

like

api = get_api(providername)
res = api.providerA["method"](params)

with

providerA={'method': get_some,  other_method:get_other)

is it possible and what is the practices ?

regards

T.



Reply all
Reply to author
Forward
0 new messages