資源簡(jiǎn)介
OAuth2 通用組件源代碼實(shí)例下載(支持新浪微博、QQ、淘寶登陸),拿來(lái)就能用哦
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Text;
using?System.Net;
using?CYQ.Data.Table;
namespace?OAuth2
{
????///?
????///?授權(quán)基類
????///?
????public?abstract?class?OAuth2base
????{
????????protected?WebClient?wc?=?new?WebClient();
????????public?OAuth2base()
????????{
????????????wc?=?new?WebClient();
????????????wc.Encoding?=?Encoding.UTF8;
????????????wc.Headers.Add(“Pragma“?“no-cache“);
????????}
????????#region?基礎(chǔ)屬性
????????///?
????????///?返回的開(kāi)放ID。
????????///?
????????public?string?openID?=?string.Empty;
????????///?
????????///?訪問(wèn)的Token
????????///?
????????public?string?token?=?string.Empty;
????????///?
????????///?過(guò)期時(shí)間
????????///?
????????public?DateTime
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄??????????0??2012-12-09?22:07??OAuth2\bin
?????文件???????2622??2012-12-09?22:35??OAuth2\OAuth2.csproj
?????文件???????6736??2012-11-25?01:23??OAuth2\OAuth2ba
?????文件????????136??2012-11-03?02:23??OAuth2\OAuth2Config.cs
?????文件???????2837??2012-11-25?01:42??OAuth2\OAuth2Factory.cs
?????文件???????3608??2012-11-25?03:19??OAuth2\OAuths\QQOAuth.cs
?????文件???????3828??2012-11-25?03:19??OAuth2\OAuths\SinaWeiBoOAuth.cs
?????文件???????2398??2012-11-25?03:18??OAuth2\OAuths\TaoBaoAuth.cs
?????目錄??????????0??2012-12-09?22:07??OAuth2\OAuths
?????文件???????2853??2012-12-09?22:35??OAuth2\OAuthTable\OAuth2Account.cs
?????目錄??????????0??2012-12-09?22:35??OAuth2\OAuthTable
?????目錄??????????0??2012-12-09?22:07??OAuth2\obj
?????文件???????1457??2012-11-06?02:07??OAuth2\Properties\AssemblyInfo.cs
?????目錄??????????0??2012-12-09?22:07??OAuth2\Properties
?????文件???????3215??2012-11-27?15:51??OAuth2\Tool\Tool.cs
?????目錄??????????0??2012-12-09?22:07??OAuth2\Tool
?????文件????????746??2012-11-25?03:03??OAuth2\UI\UI.cs
?????目錄??????????0??2012-12-09?22:07??OAuth2\UI
?????文件?????233472??2012-12-09?21:59??OAuth2\外置的文本數(shù)據(jù)庫(kù)操作類dll\CYQ.Data.dll
?????文件?????130977??2012-06-08?00:53??OAuth2\外置的文本數(shù)據(jù)庫(kù)操作類dll\CYQ.Data.xm
?????目錄??????????0??2012-12-09?22:07??OAuth2\外置的文本數(shù)據(jù)庫(kù)操作類dll
?????目錄??????????0??2012-12-09?22:07??OAuth2
?????文件?????233472??2012-12-09?21:59??OAuth2Demo\bin\CYQ.Data.dll
?????文件?????130977??2012-06-08?00:53??OAuth2Demo\bin\CYQ.Data.xm
?????文件??????28672??2012-12-09?22:36??OAuth2Demo\bin\OAuth2.dll
?????文件???????6259??2012-12-09?22:36??OAuth2Demo\bin\OAuth2.xm
?????文件??????16384??2012-12-09?22:36??OAuth2Demo\bin\OAuth2Demo.dll
?????目錄??????????0??2012-12-09?22:36??OAuth2Demo\bin
?????文件???????1647??2012-12-09?22:34??OAuth2Demo\Login.aspx
?????文件???????3346??2013-01-05?21:58??OAuth2Demo\Login.aspx.cs
............此處省略20個(gè)文件信息
- 上一篇:C#中文驗(yàn)證碼
- 下一篇:C#做的石英時(shí)鐘
評(píng)論
共有 條評(píng)論