/// <summary> /// 连接 /// </summary> /// <returns></returns> public override string Connect(String addparams) { this.PlatformType = BiZ.Member.Connector.Platform.TencentWeibo; txoauth = new OpenTSDK.Tencent.OAuth(platformDef.ApiKey, platformDef.ApiKeySecret); //Session["txoath"] = txoauth; //获取请求Token if (txoauth.GetRequestToken(platformDef.CallbackUrl + addparams)) { return "https://open.t.qq.com/cgi-bin/authorize?oauth_token=" + txoauth.Token; //Response.Redirect("https://open.t.qq.com/cgi-bin/authorize?oauth_token=" + txoauth.Token, false); } return "err"; }
public override string SendInfoWithPic(string url, string info, string pic) { if (txoauth == null) txoauth = new OpenTSDK.Tencent.OAuth(platformDef.ApiKey, platformDef.ApiKeySecret); txoauth.Token = OAuth_Token; txoauth.TokenSecret = OAuth_Token_Secret; OpenTSDK.Tencent.Objects.TweetOperateResult result = new OpenTSDK.Tencent.API.Twitter(txoauth).Add(info + "," + url, pic, "127.0.0.1"); return result.Msg; }