17 return "https://api.audio.com";
22 static const std::string loginPage =
23 std::string(
"https://audio.com/audacity/link?clientId=") +
31 return "1741964426607541";
37 return "https://audio.com/auth/sign-in/success";
46 std::string_view audioID, std::string_view token)
const
48 return "http://audio.com/audacity/upload?audioId=" + std::string(audioID) +
49 "&token=" + std::string(token) +
55 return std::chrono::seconds(3);
60 return {
"audio/x-wavpack",
"audio/x-flac",
"audio/x-wav" };
Configuration for the audio.com.
MimeTypesList GetPreferredAudioFormats() const
Preferred audio format.
std::string_view GetOAuthRedirectURL() const
OAuth2 redirect URL. Only used to satisfy the protocol.
std::string GetAPIUrl(std::string_view apiURI) const
Helper to construct the full URLs for the API.
std::chrono::milliseconds GetProgressCallbackTimeout() const
Timeout between progress callbacks.
MimeType GetDownloadMime() const
Return the mime type server should store the file. This is a requirement from audiocom.
std::string_view GetOAuthLoginPage() const
Page to open in browser to initiate OAuth.
std::string GetFinishUploadPage(std::string_view audioID, std::string_view token) const
Helper to construct the page URL for the anonymous upload last stage.
std::string_view GetOAuthClientID() const
OAuth2 client ID.
std::string_view GetAPIEndpoint() const
API endpoint.
const ServiceConfig & GetServiceConfig()
Returns the instance of the ServiceConfig.
std::vector< std::string > MimeTypesList
Ordered list of mime types.