factorize the getOembedRequest() code in BaseOEmbedSource