文件名称:SinaDemo
- 所属分类:
- WEB源码
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 135kb
- 下载次数:
- 0次
- 提 供 者:
- lido****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
首先要使用这些接口是需要用户登录并且授权的,新浪微博开放平台其实是提供两种授权方式的,第一种是:OAuth授权方式,第二种是:HTTP普通鉴权方式,我们使用了第一种方式来授权,但是在执行过程中遇到了许多问题,觉得单对新浪微博开放平台还是有一些代表性,所以共享下经验,下面可以下载我的Demo。
OAuth是一种国际授权方式,它不需要用户在第三方应用输入用户名及密码,所以安全性很高
其实在程序中步骤表现就只有4步:
1、获取Request token。
2、用户认证。
3、获取Access token。
4、获取用户信息。
在处理OAuth授权过程中我也碰到几个在新浪开放平台论坛中常见的几个问题,在这里总结下,在后面讲解中会讲到我的想法和解决办法:
1、requesttoken时callback问题。
2、401错误。
3、403错误。
4、500错误。
5、未经授权错误-The first is to use these interfaces require users to login and authorization, Sina microblogging platform is open to provide two licensing methods, the first one is: OAuth Authorization, the second is: HTTP common authentication method, we use The first approach to authorization, but in the implementation process has encountered many problems, that a single open platform for microblogging Sina or some representative, so to share the experience, the following can download my Demo.
OAuth is an international license, it does not require users to third-party applications to enter a user name and password, so security is high
In fact, the performance of the steps in the program only four steps:
1, to obtain Request token.
2, the user authentication.
3, for Access token.
4, access to user information.
In dealing with OAuth authorization process I also encountered a few in the Sina forum open platform common to several issues, summarized here under, will be me
OAuth是一种国际授权方式,它不需要用户在第三方应用输入用户名及密码,所以安全性很高
其实在程序中步骤表现就只有4步:
1、获取Request token。
2、用户认证。
3、获取Access token。
4、获取用户信息。
在处理OAuth授权过程中我也碰到几个在新浪开放平台论坛中常见的几个问题,在这里总结下,在后面讲解中会讲到我的想法和解决办法:
1、requesttoken时callback问题。
2、401错误。
3、403错误。
4、500错误。
5、未经授权错误-The first is to use these interfaces require users to login and authorization, Sina microblogging platform is open to provide two licensing methods, the first one is: OAuth Authorization, the second is: HTTP common authentication method, we use The first approach to authorization, but in the implementation process has encountered many problems, that a single open platform for microblogging Sina or some representative, so to share the experience, the following can download my Demo.
OAuth is an international license, it does not require users to third-party applications to enter a user name and password, so security is high
In fact, the performance of the steps in the program only four steps:
1, to obtain Request token.
2, the user authentication.
3, for Access token.
4, access to user information.
In dealing with OAuth authorization process I also encountered a few in the Sina forum open platform common to several issues, summarized here under, will be me
(系统自动生成,下载前可以参看下载内容)
下载文件列表
App_Code\OAuthBase.cs
Bin\HtmlAgilityPack.dll
...\HtmlAgilityPack.dll.refresh
...\HtmlAgilityPack.xml
...\Microsoft.Practices.ServiceLocation.dll
...\Microsoft.Practices.ServiceLocation.dll.refresh
Image\48.jpg
index.aspx
index.aspx.cs
Web.Config
wuyou.sln
wuyou.suo
51aspx源码必读.txt
App_Code
App_Data
Bin
Image
Bin\HtmlAgilityPack.dll
...\HtmlAgilityPack.dll.refresh
...\HtmlAgilityPack.xml
...\Microsoft.Practices.ServiceLocation.dll
...\Microsoft.Practices.ServiceLocation.dll.refresh
Image\48.jpg
index.aspx
index.aspx.cs
Web.Config
wuyou.sln
wuyou.suo
51aspx源码必读.txt
App_Code
App_Data
Bin
Image