예제 #1
0
 public Id3Api(IBitmovinApiClientFactory apiClientFactory)
 {
     _apiClient = apiClientFactory.CreateClient <IId3ApiClient>();
     Raw        = new RawApi(apiClientFactory);
     FrameId    = new FrameIdApi(apiClientFactory);
     PlainText  = new PlainTextApi(apiClientFactory);
 }
예제 #2
0
 public Core(string redirectUrl = null)
 {
     _api = new RawApi();
     try {
         if (!String.IsNullOrWhiteSpace(redirectUrl))
         {
             _api.AddToken(Token.FromRedirectUrl(redirectUrl));
         }
     }
     catch {}
 }
예제 #3
0
        static async Task Main2()
        {
            var vk = new RawApi();

#if !DEBUG
            var str = VKToken.GetOAuthURL(3174839, VKPermission.Offline | VKPermission.Nohttps);
            str.Dump();
            var redirecturl = ConTools.ReadLine("Enter redirect url or Ctrl-C");
            vk.AddToken(VKToken.FromRedirectUrl(redirecturl));
#else
            try{
                foreach (var v in File.ReadAllLines("debug.token"))
                {
                    vk.AddToken(VKToken.FromRedirectUrl(v));
                }
            }
            catch (Exception ex) {
                ex.Message.Dump();
            }
#endif
            CheckVkParser(@"C:\Temp\217053001_217054001.xml", vk.Executor);
        }
예제 #4
0
 public Core(string redirectUrl)
 {
     _api = new RawApi();
     try { _api.AddToken(VKToken.FromRedirectUrl(redirectUrl)); } catch { }
 }