obspy.clients.fdsn.client.build_url
- build_url(base_url, service, major_version, resource_type, parameters=None, service_mappings=None, subpath='fdsnws')[source]
URL builder for the FDSN webservices.
Built as a separate function to enhance testability.
>>> print(build_url("http://service.iris.edu", "dataselect", 1, "application.wadl")) http://service.iris.edu/fdsnws/dataselect/1/application.wadl
>>> print(build_url("http://service.iris.edu", "dataselect", 1, "query", {"cha": "EHE"})) http://service.iris.edu/fdsnws/dataselect/1/query?cha=EHE