function getProviderId(url = undefined) {
  return getRequiredUrlParam('providerId',
      url);
}
Gets the provider ID from the given URL. If no URL is provided, the one for
the current page is used.
@param {?string=} url The URL from which to extract the app ID.
@return {string} The provider ID.