public DiscogsClientTest(ITestOutputHelper testOutputHelper) { _TestOutputHelper = testOutputHelper; var tokenInformation = new TokenAuthenticationInformation(Token); _DiscogsClient = new DiscogsClient(tokenInformation); }
private DiscogsAPI() { // If want to use it, Singleton it //var discogsConfig = ConfigurationManager.GetSection("Discogs") as NameValueCollection; //Create authentication object using private and public keys: you should fournish real keys here /*var oAuthCompleteInformation = new OAuthCompleteInformation(discogsConfig["key"], * discogsConfig["secret"], , ); * //Create discogs client using the authentication * var discogsClient = new DiscogsClient.DiscogsClient(oAuthCompleteInformation);*/ //Create authentication based on Discogs token var tokenInformation = new TokenAuthenticationInformation("uiHViDZbDPlVQZNZgvluZypCMBjXoKIUVAYaJbmj"); //Create discogs client using the authentication client = new DiscogsClient.DiscogsClient(tokenInformation); }
public DiscogsClient(TokenAuthenticationInformation tokenAuthenticationInformation, string userAgent = null, int timeOut = 5000) { _Client = new DiscogsWebClient(tokenAuthenticationInformation, userAgent, timeOut); }
public Discogs(string artist, string title, WaitHandle mEventStopSiteSearches, int timeLimit) : base(artist, title, mEventStopSiteSearches, timeLimit) { var tokenInformation = new TokenAuthenticationInformation(MPTagThat.LicenseManager.LicenseManager.GetDiscogsToken()); _discogsClient = new DiscogsClient.DiscogsClient(tokenInformation, "MPTagThat 4.0"); }
public IDiscogsDataBaseClient GetDiscogsClient() { var tokenInformation = new TokenAuthenticationInformation(_ApplicationConfiguration.Token); return(new DiscogsClient.DiscogsClient(tokenInformation)); }