Hello,
I have a Drupal website I need to integrate with basecamp API (but not only basecamp). Thus I'm digging around to find the best way to do it, and to keep it standard and flexible Web Service Clients seems to be the best choice I've found.
But the thing is:
For the Basecamp case, the API uses a different URL for each user account like https://xxxxx.basecamp.com
This would mean a new webservice description should be created per user as they all have different URL
Am I correct?
Or is there a way to use a token in the URL, or make it somehow dynamic?
Thanks for the help
Comments
Comment #1
adrien.felipe commentedKlausi, don't you wan't to give me any hint?
Comment #2
klausiHm, that is currently not possible as the URL is fixed. Only the path (the operation URL) can use dynamic values.
However, we could also allow placeholders in the service URL as we do it for the operation URL (see e.g. wsclient_examples.module) right now. We would have to replace the service URL validator in the UI form and we would have to modify the call method in WSClientRESTEndpoint to replace "@" placeholders. And the form description should indicate that "@" placeholders can be used.