The import and sync API url are very similar. This function capture the shared parts. The individual API call will add its special part as parameter to build its url.
build_url(middle)
import and sync API url
Called by local_import, url_common
local_import
url_common