Exemple #1
0
 public KuaipanDownload(KuaipanClient client)
 {
     _Client = client;
 }
Exemple #2
0
        private KuaipanClient CreateClient()
        {
            if (_MPwd == null)
            {
                _MPwd = _DataModel.ReadMPwd();
            }
            OAuthConsumer consumer = new OAuthConsumer();
            consumer.consumer_key = "xcLegJ8HLq7ZoQ0U";
            consumer.consumer_secret = "psaBwFH0Z0r2PEPI";

            OAuthTokenV1 token = new OAuthTokenV1();
            token.oauth_token = _MPwd.CsAuth;
            KuaipanClient client = new KuaipanClient(consumer, token, false);
            return client;
        }
Exemple #3
0
 private PcsClient NewKuaipan(MPcs pcs)
 {
     var token = new Me.Amon.Open.V1.OAuthTokenV1();
     token.oauth_token = pcs.Token;
     token.oauth_token_secret = pcs.TokenSecret;
     token.UserId = pcs.UserId;
     KuaipanClient client = new KuaipanClient(OAuthConsumer.KuaipanConsumer(), token, false);
     if (token.oauth_token.Length != 24 && token.oauth_token_secret.Length != 32)
     {
         client.Verify();
     }
     return client;
 }
Exemple #4
0
 public KuaipanUpload(KuaipanClient client)
 {
     _Client = client;
 }