├── .gitignore ├── API文档 ├── Classes │ ├── WBAuthorizeRequest.html │ ├── WBAuthorizeResponse.html │ ├── WBBaseMediaObject.html │ ├── WBBaseRequest.html │ ├── WBBaseResponse.html │ ├── WBDataTransferObject.html │ ├── WBHttpRequest.html │ ├── WBImageObject.html │ ├── WBMessageObject.html │ ├── WBMusicObject.html │ ├── WBProvideMessageForWeiboRequest.html │ ├── WBProvideMessageForWeiboResponse.html │ ├── WBSendMessageToWeiboRequest.html │ ├── WBSendMessageToWeiboResponse.html │ ├── WBVideoObject.html │ ├── WBWebpageObject.html │ └── WeiboSDK.html ├── Constants │ └── WeiboSDKResponseStatusCode.html ├── Protocols │ ├── WBHttpRequestDelegate.html │ └── WeiboSDKDelegate.html ├── css │ ├── styles.css │ └── stylesPrint.css ├── hierarchy.html ├── img │ ├── button_bar_background.png │ ├── disclosure.png │ ├── disclosure_open.png │ ├── library_background.png │ └── title_background.png └── index.html ├── README.md ├── SDKDemo20131113.ipa ├── WeiboSDKDemo ├── WeiboSDKDemo │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Default-568h@2x.png │ ├── Default.png │ ├── Default@2x.png │ ├── ProvideMessageForWeiboViewController.h │ ├── ProvideMessageForWeiboViewController.m │ ├── SendMessageToWeiboViewController.h │ ├── SendMessageToWeiboViewController.m │ ├── WeiboSDKDemo-Info.plist │ ├── WeiboSDKDemo-Prefix.pch │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── icon.png │ ├── icon@2x.png │ ├── image_1.jpg │ ├── image_2.jpg │ └── main.m ├── WeiboSDKLibDemo.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ ├── xcshareddata │ │ │ └── WeiboSDKLibDemo.xccheckout │ │ └── xcuserdata │ │ │ └── hongtao.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ └── xcuserdata │ │ └── hongtao.xcuserdatad │ │ └── xcschemes │ │ ├── WeiboSDKLibDemo.xcscheme │ │ └── xcschememanagement.plist ├── libWeiboSDK │ ├── WeiboSDK.bundle │ │ └── images │ │ │ ├── close.png │ │ │ └── close@2x.png │ ├── WeiboSDK.h │ └── libWeiboSDK.a └── libWeiboSDK_X64 │ ├── WeiboSDK.bundle │ └── images │ │ ├── close.png │ │ └── close@2x.png │ ├── WeiboSDK.h │ └── libWeiboSDK.a ├── libWeiboSDK ├── WeiboSDK.bundle │ └── images │ │ ├── close.png │ │ └── close@2x.png ├── WeiboSDK.h └── libWeiboSDK.a ├── libWeiboSDK_X64 ├── WeiboSDK.bundle │ └── images │ │ ├── close.png │ │ └── close@2x.png ├── WeiboSDK.h └── libWeiboSDK.a └── 微博IOS平台SDK文档V2.4.0.pdf /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | demo/.DS_Store 3 | 4 | -------------------------------------------------------------------------------- /API文档/Classes/WBAuthorizeRequest.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | WBAuthorizeRequest Class Reference 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 |
14 |

WeiboSDK

15 | WEIBO 16 |
17 | 18 | 21 | 55 |
56 | 87 |
88 |
89 | 90 | 96 | 101 |
102 | 103 |
104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 |
Inherits fromWBBaseRequest : WBDataTransferObject : NSObject
Declared inWeiboSDK.h
112 | 113 | 114 | 115 | 116 |
117 | 118 |

Overview

119 |

第三方应用向微博客户端请求认证的消息结构

120 | 121 |

第三方应用向微博客户端申请认证时,需要调用 [WeiboSDK sendRequest:] 函数, 向微博客户端发送一个 WBAuthorizeRequest 的消息结构。 122 | 微博客户端处理完后会向第三方应用发送一个结构为 WBAuthorizeResponse 的处理结果。

123 |
124 | 125 | 126 | 127 | 128 | 129 |
130 | 131 |

Tasks

132 | 133 | 134 | 135 | 136 | 137 |
    138 |
  • 139 | 140 |   redirectURI 141 | 142 | property 143 | 144 |
  • 145 | 146 |   scope 147 | 148 | property 149 | 150 |
  • 151 |
152 | 153 |
154 | 155 | 156 | 157 | 158 | 159 |
160 | 161 |

Properties

162 | 163 |
164 | 165 |

redirectURI

166 | 167 | 168 | 169 |
170 |

微博开放平台第三方应用授权回调页地址,默认为http://

171 |
172 | 173 | 174 | 175 |
@property (nonatomic, retain) NSString *redirectURI
176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 |
186 |

Discussion

187 |

参考 http://open.weibo.com/wiki/%E6%8E%88%E6%9D%83%E6%9C%BA%E5%88%B6%E8%AF%B4%E6%98%8E#.E5.AE.A2.E6.88.B7.E7.AB.AF.E9.BB.98.E8.AE.A4.E5.9B.9E.E8.B0.83.E9.A1.B5

Warning: 必须保证和在微博开放平台应用管理界面配置的“授权回调页”地址一致,如未进行配置则默认为http://

Warning: 不能为空,长度小于1K

188 |
189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 |
197 |

Declared In

198 | WeiboSDK.h
199 |
200 | 201 | 202 |
203 | 204 |
205 | 206 |

scope

207 | 208 | 209 | 210 |
211 |

微博开放平台第三方应用scope,多个scrope用逗号分隔

212 |
213 | 214 | 215 | 216 |
@property (nonatomic, retain) NSString *scope
217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 |
227 |

Discussion

228 |

参考 http://open.weibo.com/wiki/%E6%8E%88%E6%9D%83%E6%9C%BA%E5%88%B6%E8%AF%B4%E6%98%8E#scope

Warning: 长度小于1K

229 |
230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 |
238 |

Declared In

239 | WeiboSDK.h
240 |
241 | 242 | 243 |
244 | 245 |
246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 |
255 | 261 | 270 |
271 |
272 | 363 | 364 | -------------------------------------------------------------------------------- /API文档/Classes/WBAuthorizeResponse.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | WBAuthorizeResponse Class Reference 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 |
14 |

WeiboSDK

15 | WEIBO 16 |
17 | 18 | 21 | 57 |
58 | 91 |
92 |
93 | 94 | 100 | 105 |
106 | 107 |
108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 |
Inherits fromWBBaseResponse : WBDataTransferObject : NSObject
Declared inWeiboSDK.h
116 | 117 | 118 | 119 | 120 |
121 | 122 |

Overview

123 |

微博客户端处理完第三方应用的认证申请后向第三方应用回送的处理结果

124 | 125 |

WBAuthorizeResponse 结构中仅包含常用的 userIDaccessTokenexpirationDate 信息,其他的认证信息(比如部分应用可以获取的 refresh_token 信息)会统一存放到 userInfo 中

126 |
127 | 128 | 129 | 130 | 131 | 132 |
133 | 134 |

Tasks

135 | 136 | 137 | 138 | 139 | 140 | 161 | 162 |
163 | 164 | 165 | 166 | 167 | 168 |
169 | 170 |

Properties

171 | 172 |
173 | 174 |

accessToken

175 | 176 | 177 | 178 |
179 |

认证口令

180 |
181 | 182 | 183 | 184 |
@property (nonatomic, retain) NSString *accessToken
185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 |
201 |

Declared In

202 | WeiboSDK.h
203 |
204 | 205 | 206 |
207 | 208 |
209 | 210 |

expirationDate

211 | 212 | 213 | 214 |
215 |

认证过期时间

216 |
217 | 218 | 219 | 220 |
@property (nonatomic, retain) NSDate *expirationDate
221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 |
237 |

Declared In

238 | WeiboSDK.h
239 |
240 | 241 | 242 |
243 | 244 |
245 | 246 |

userID

247 | 248 | 249 | 250 |
251 |

用户ID

252 |
253 | 254 | 255 | 256 |
@property (nonatomic, retain) NSString *userID
257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 |
273 |

Declared In

274 | WeiboSDK.h
275 |
276 | 277 | 278 |
279 | 280 |
281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 |
290 | 296 | 305 |
306 |
307 | 398 | 399 | -------------------------------------------------------------------------------- /API文档/Classes/WBBaseRequest.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | WBBaseRequest Class Reference 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 |
14 |

WeiboSDK

15 | WEIBO 16 |
17 | 18 | 21 | 53 |
54 | 83 |
84 |
85 | 86 | 92 | 97 |
98 | 99 |
100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 |
Inherits fromWBDataTransferObject : NSObject
Declared inWeiboSDK.h
108 | 109 | 110 | 111 | 112 |
113 | 114 |

Overview

115 |

微博SDK所有请求类的基类

116 |
117 | 118 | 119 | 120 | 121 | 122 |
123 | 124 |

Tasks

125 | 126 | 127 | 128 | 129 | 130 |
    131 |
  • 132 | 133 | + request 134 | 135 | 136 | 137 |
  • 138 |
139 | 140 |
141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 |
149 | 150 |

Class Methods

151 | 152 |
153 | 154 |

request

155 | 156 | 157 | 158 |
159 |

返回一个 WBBaseRequest 对象

160 |
161 | 162 | 163 | 164 |
+ (id)request
165 | 166 | 167 | 168 | 169 | 170 |
171 |

Return Value

172 |

返回一个自动释放的WBBaseRequest对象

173 |
174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 |
186 |

Declared In

187 | WeiboSDK.h
188 |
189 | 190 | 191 |
192 | 193 |
194 | 195 | 196 | 197 | 198 | 199 | 200 |
201 | 207 | 216 |
217 |
218 | 309 | 310 | -------------------------------------------------------------------------------- /API文档/Classes/WBBaseResponse.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | WBBaseResponse Class Reference 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 |
14 |

WeiboSDK

15 | WEIBO 16 |
17 | 18 | 21 | 60 |
61 | 98 |
99 |
100 | 101 | 107 | 112 |
113 | 114 |
115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 |
Inherits fromWBDataTransferObject : NSObject
Declared inWeiboSDK.h
123 | 124 | 125 | 126 | 127 |
128 | 129 |

Overview

130 |

微博SDK所有响应类的基类

131 |
132 | 133 | 134 | 135 | 136 | 137 |
138 | 139 |

Tasks

140 | 141 | 142 | 143 | 144 | 145 | 166 | 167 |
168 | 169 | 170 | 171 | 172 | 173 |
174 | 175 |

Properties

176 | 177 |
178 | 179 |

requestUserInfo

180 | 181 | 182 | 183 |
184 |

对应的 request 中的自定义信息字典

185 |
186 | 187 | 188 | 189 |
@property (nonatomic, readonly) NSDictionary *requestUserInfo
190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 |
200 |

Discussion

201 |

如果当前 response 是由微博客户端响应给第三方应用的,则 requestUserInfo 中会包含原 request.userInfo 中的所有数据

202 |
203 | 204 | 205 | 206 | 207 | 208 |
209 |

See Also

210 | 215 |
216 | 217 | 218 | 219 |
220 |

Declared In

221 | WeiboSDK.h
222 |
223 | 224 | 225 |
226 | 227 |
228 | 229 |

statusCode

230 | 231 | 232 | 233 |
234 |

响应状态码

235 |
236 | 237 | 238 | 239 |
@property (nonatomic, assign) WeiboSDKResponseStatusCode statusCode
240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 |
250 |

Discussion

251 |

第三方应用可以通过statusCode判断请求的处理结果

252 |
253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 |
261 |

Declared In

262 | WeiboSDK.h
263 |
264 | 265 | 266 |
267 | 268 |
269 | 270 | 271 | 272 |
273 | 274 |

Class Methods

275 | 276 |
277 | 278 |

response

279 | 280 | 281 | 282 |
283 |

返回一个 WBBaseResponse 对象

284 |
285 | 286 | 287 | 288 |
+ (id)response
289 | 290 | 291 | 292 | 293 | 294 |
295 |

Return Value

296 |

返回一个自动释放的WBBaseResponse对象

297 |
298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 |
310 |

Declared In

311 | WeiboSDK.h
312 |
313 | 314 | 315 |
316 | 317 |
318 | 319 | 320 | 321 | 322 | 323 | 324 |
325 | 331 | 340 |
341 |
342 | 433 | 434 | -------------------------------------------------------------------------------- /API文档/Classes/WBDataTransferObject.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | WBDataTransferObject Class Reference 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 |
14 |

WeiboSDK

15 | WEIBO 16 |
17 | 18 | 21 | 57 |
58 | 91 |
92 |
93 | 94 | 100 | 105 |
106 | 107 |
108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 |
Inherits fromNSObject
Declared inWeiboSDK.h
116 | 117 | 118 | 119 | 120 |
121 | 122 |

Overview

123 |

微博客户端程序和第三方应用之间传输数据信息的基类

124 |
125 | 126 | 127 | 128 | 129 | 130 |
131 | 132 |

Tasks

133 | 134 | 135 | 136 | 137 | 138 | 159 | 160 |
161 | 162 | 163 | 164 | 165 | 166 |
167 | 168 |

Properties

169 | 170 |
171 | 172 |

sdkVersion

173 | 174 | 175 | 176 |
177 |

发送该数据对象的SDK版本号

178 |
179 | 180 | 181 | 182 |
@property (nonatomic, readonly) NSString *sdkVersion
183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 |
193 |

Discussion

194 |

如果数据对象是自己生成的,则sdkVersion为当前SDK的版本号;如果是接收到的数据对象,则sdkVersion为数据发送方SDK版本号

195 |
196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 |
204 |

Declared In

205 | WeiboSDK.h
206 |
207 | 208 | 209 |
210 | 211 |
212 | 213 |

shouldOpenWeiboAppInstallPageIfNotInstalled

214 | 215 | 216 | 217 |
218 |

当用户没有安装微博客户端程序时是否提示用户打开微博安装页面

219 |
220 | 221 | 222 | 223 |
@property (nonatomic, assign) BOOL shouldOpenWeiboAppInstallPageIfNotInstalled
224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 |
234 |

Discussion

235 |

如果设置为YES,当用户未安装微博时会弹出Alert询问用户是否要打开微博App的安装页面。默认为YES

236 |
237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 |
245 |

Declared In

246 | WeiboSDK.h
247 |
248 | 249 | 250 |
251 | 252 |
253 | 254 |

userInfo

255 | 256 | 257 | 258 |
259 |

自定义信息字典,用于数据传输过程中存储相关的上下文环境数据

260 |
261 | 262 | 263 | 264 |
@property (nonatomic, retain) NSDictionary *userInfo
265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 |
275 |

Discussion

276 |

第三方应用给微博客户端程序发送 request 时,可以在 userInfo 中存储请求相关的信息。

Warning: userInfo中的数据必须是实现了 NSCoding 协议的对象,必须保证能序列化和反序列化

Warning: 序列化后的数据不能大于10M

277 |
278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 |
286 |

Declared In

287 | WeiboSDK.h
288 |
289 | 290 | 291 |
292 | 293 |
294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 |
303 | 309 | 318 |
319 |
320 | 411 | 412 | -------------------------------------------------------------------------------- /API文档/Classes/WBHttpRequest.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | WBHttpRequest Class Reference 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 |
14 |

WeiboSDK

15 | WEIBO 16 |
17 | 18 | 21 | 55 |
56 | 87 |
88 |
89 | 90 | 96 | 101 |
102 | 103 |
104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 |
Inherits fromNSObject
Declared inWeiboSDK.h
112 | 113 | 114 | 115 | 116 |
117 | 118 |

Overview

119 |

微博封装Http请求的消息结构

120 |
121 | 122 | 123 | 124 | 125 | 126 |
127 | 128 |

Tasks

129 | 130 | 131 | 132 | 133 | 134 | 149 | 150 |
151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 |
159 | 160 |

Class Methods

161 | 162 |
163 | 164 |

requestWithAccessToken:url:httpMethod:params:delegate:

165 | 166 | 167 | 168 |
169 |

统一微博Open API HTTP请求接口 170 | 调用此接口后,将发送一个HTTP网络请求(用于访问微博open api)

171 |
172 | 173 | 174 | 175 |
+ (void)requestWithAccessToken:(NSString *)accessToken url:(NSString *)url httpMethod:(NSString *)httpMethod params:(NSDictionary *)params delegate:(id<WBHttpRequestDelegate>)delegate
176 | 177 | 178 | 179 |
180 |

Parameters

181 | 182 |
183 |
accessToken
184 |

应用获取到的accessToken,用于身份验证

185 |
186 | 187 |
188 |
url
189 |

请求url地址

190 |
191 | 192 |
193 |
httpMethod
194 |

支持"GET" “POST”

195 |
196 | 197 |
198 |
params
199 |

向接口传递的参数结构

200 |
201 | 202 |
203 |
delegate
204 |

WBHttpRequestDelegate对象,用于接收微博SDK对于发起的接口请求的请求的响应

205 |
206 | 207 |
208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 |
222 |

Declared In

223 | WeiboSDK.h
224 |
225 | 226 | 227 |
228 | 229 |
230 | 231 |

requestWithURL:httpMethod:params:delegate:

232 | 233 | 234 | 235 |
236 |

统一HTTP请求接口 237 | 调用此接口后,将发送一个HTTP网络请求

238 |
239 | 240 | 241 | 242 |
+ (void)requestWithURL:(NSString *)url httpMethod:(NSString *)httpMethod params:(NSDictionary *)params delegate:(id<WBHttpRequestDelegate>)delegate
243 | 244 | 245 | 246 |
247 |

Parameters

248 | 249 |
250 |
url
251 |

请求url地址

252 |
253 | 254 |
255 |
httpMethod
256 |

支持"GET" “POST”

257 |
258 | 259 |
260 |
params
261 |

向接口传递的参数结构

262 |
263 | 264 |
265 |
delegate
266 |

WBHttpRequestDelegate对象,用于接收微博SDK对于发起的接口请求的请求的响应

267 |
268 | 269 |
270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 |
284 |

Declared In

285 | WeiboSDK.h
286 |
287 | 288 | 289 |
290 | 291 |
292 | 293 | 294 | 295 | 296 | 297 | 298 |
299 | 305 | 314 |
315 |
316 | 407 | 408 | -------------------------------------------------------------------------------- /API文档/Classes/WBImageObject.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | WBImageObject Class Reference 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 |
14 |

WeiboSDK

15 | WEIBO 16 |
17 | 18 | 21 | 63 |
64 | 105 |
106 |
107 | 108 | 114 | 119 |
120 | 121 |
122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 |
Inherits fromNSObject
Declared inWeiboSDK.h
130 | 131 | 132 | 133 | 134 |
135 | 136 |

Overview

137 |

消息中包含的图片数据对象

138 |
139 | 140 | 141 | 142 | 143 | 144 |
145 | 146 |

Tasks

147 | 148 | 149 | 150 | 151 | 152 |
    153 |
  • 154 | 155 |   imageData 156 | 157 | property 158 | 159 |
  • 160 | 161 | + object 162 | 163 | 164 | 165 |
  • 166 | 167 | – image 168 | 169 | 170 | 171 |
  • 172 |
173 | 174 |
175 | 176 | 177 | 178 | 179 | 180 |
181 | 182 |

Properties

183 | 184 |
185 | 186 |

imageData

187 | 188 | 189 | 190 |
191 |

图片真实数据内容

192 |
193 | 194 | 195 | 196 |
@property (nonatomic, retain) NSData *imageData
197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 |
207 |

Discussion

208 |

Warning: 大小不能超过10M

209 |
210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 |
218 |

Declared In

219 | WeiboSDK.h
220 |
221 | 222 | 223 |
224 | 225 |
226 | 227 | 228 | 229 |
230 | 231 |

Class Methods

232 | 233 |
234 | 235 |

object

236 | 237 | 238 | 239 |
240 |

返回一个 WBImageObject 对象

241 |
242 | 243 | 244 | 245 |
+ (id)object
246 | 247 | 248 | 249 | 250 | 251 |
252 |

Return Value

253 |

返回一个自动释放的WBImageObject对象

254 |
255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 |
267 |

Declared In

268 | WeiboSDK.h
269 |
270 | 271 | 272 |
273 | 274 |
275 | 276 | 277 | 278 |
279 | 280 |

Instance Methods

281 | 282 |
283 | 284 |

image

285 | 286 | 287 | 288 |
289 |

返回一个 UIImage 对象

290 |
291 | 292 | 293 | 294 |
- (UIImage *)image
295 | 296 | 297 | 298 | 299 | 300 |
301 |

Return Value

302 |

返回一个自动释放的UIImage对象

303 |
304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 |
316 |

Declared In

317 | WeiboSDK.h
318 |
319 | 320 | 321 |
322 | 323 |
324 | 325 | 326 | 327 | 328 |
329 | 335 | 344 |
345 |
346 | 437 | 438 | -------------------------------------------------------------------------------- /API文档/Classes/WBProvideMessageForWeiboRequest.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | WBProvideMessageForWeiboRequest Class Reference 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 |
14 |

WeiboSDK

15 | WEIBO 16 |
17 | 18 | 21 | 46 |
47 | 66 |
67 |
68 | 69 | 75 | 80 |
81 | 82 |
83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 |
Inherits fromWBBaseRequest : WBDataTransferObject : NSObject
Declared inWeiboSDK.h
91 | 92 | 93 | 94 | 95 |
96 | 97 |

Overview

98 |

微博客户端向第三方程序请求提供内容的消息结构

99 |
100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 |
117 | 123 | 132 |
133 |
134 | 225 | 226 | -------------------------------------------------------------------------------- /API文档/Classes/WBProvideMessageForWeiboResponse.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | WBProvideMessageForWeiboResponse Class Reference 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 |
14 |

WeiboSDK

15 | WEIBO 16 |
17 | 18 | 21 | 58 |
59 | 94 |
95 |
96 | 97 | 103 | 108 |
109 | 110 |
111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 |
Inherits fromWBBaseResponse : WBDataTransferObject : NSObject
Declared inWeiboSDK.h
119 | 120 | 121 | 122 | 123 |
124 | 125 |

Overview

126 |

微博客户端向第三方应用请求提供内容,第三方应用向微博客户端返回的消息结构

127 |
128 | 129 | 130 | 131 | 132 | 133 |
134 | 135 |

Tasks

136 | 137 | 138 | 139 | 140 | 141 | 156 | 157 |
158 | 159 | 160 | 161 | 162 | 163 |
164 | 165 |

Properties

166 | 167 |
168 | 169 |

message

170 | 171 | 172 | 173 |
174 |

提供给微博客户端的消息

175 |
176 | 177 | 178 | 179 |
@property (nonatomic, retain) WBMessageObject *message
180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 |
196 |

Declared In

197 | WeiboSDK.h
198 |
199 | 200 | 201 |
202 | 203 |
204 | 205 | 206 | 207 |
208 | 209 |

Class Methods

210 | 211 |
212 | 213 |

responseWithMessage:

214 | 215 | 216 | 217 |
218 |

返回一个 WBProvideMessageForWeiboResponse 对象

219 |
220 | 221 | 222 | 223 |
+ (id)responseWithMessage:(WBMessageObject *)message
224 | 225 | 226 | 227 |
228 |

Parameters

229 | 230 |
231 |
message
232 |

需要回送给微博客户端程序的消息对象

233 |
234 | 235 |
236 | 237 | 238 | 239 |
240 |

Return Value

241 |

返回一个自动释放的WBProvideMessageForWeiboResponse对象

242 |
243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 |
255 |

Declared In

256 | WeiboSDK.h
257 |
258 | 259 | 260 |
261 | 262 |
263 | 264 | 265 | 266 | 267 | 268 | 269 |
270 | 276 | 285 |
286 |
287 | 378 | 379 | -------------------------------------------------------------------------------- /API文档/Classes/WBSendMessageToWeiboRequest.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | WBSendMessageToWeiboRequest Class Reference 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 |
14 |

WeiboSDK

15 | WEIBO 16 |
17 | 18 | 21 | 58 |
59 | 94 |
95 |
96 | 97 | 103 | 108 |
109 | 110 |
111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 |
Inherits fromWBBaseRequest : WBDataTransferObject : NSObject
Declared inWeiboSDK.h
119 | 120 | 121 | 122 | 123 |
124 | 125 |

Overview

126 |

第三方应用发送消息至微博客户端程序的消息结构体

127 |
128 | 129 | 130 | 131 | 132 | 133 |
134 | 135 |

Tasks

136 | 137 | 138 | 139 | 140 | 141 | 156 | 157 |
158 | 159 | 160 | 161 | 162 | 163 |
164 | 165 |

Properties

166 | 167 |
168 | 169 |

message

170 | 171 | 172 | 173 |
174 |

发送给微博客户端的消息

175 |
176 | 177 | 178 | 179 |
@property (nonatomic, retain) WBMessageObject *message
180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 |
196 |

Declared In

197 | WeiboSDK.h
198 |
199 | 200 | 201 |
202 | 203 |
204 | 205 | 206 | 207 |
208 | 209 |

Class Methods

210 | 211 |
212 | 213 |

requestWithMessage:

214 | 215 | 216 | 217 |
218 |

返回一个 WBSendMessageToWeiboRequest 对象

219 |
220 | 221 | 222 | 223 |
+ (id)requestWithMessage:(WBMessageObject *)message
224 | 225 | 226 | 227 |
228 |

Parameters

229 | 230 |
231 |
message
232 |

需要发送给微博客户端程序的消息对象

233 |
234 | 235 |
236 | 237 | 238 | 239 |
240 |

Return Value

241 |

返回一个自动释放的WBSendMessageToWeiboRequest对象

242 |
243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 |
255 |

Declared In

256 | WeiboSDK.h
257 |
258 | 259 | 260 |
261 | 262 |
263 | 264 | 265 | 266 | 267 | 268 | 269 |
270 | 276 | 285 |
286 |
287 | 378 | 379 | -------------------------------------------------------------------------------- /API文档/Classes/WBSendMessageToWeiboResponse.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | WBSendMessageToWeiboResponse Class Reference 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 |
14 |

WeiboSDK

15 | WEIBO 16 |
17 | 18 | 21 | 46 |
47 | 66 |
67 |
68 | 69 | 75 | 80 |
81 | 82 |
83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 |
Inherits fromWBBaseResponse : WBDataTransferObject : NSObject
Declared inWeiboSDK.h
91 | 92 | 93 | 94 | 95 |
96 | 97 |

Overview

98 |

WBSendMessageToWeiboResponse

99 |
100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 |
117 | 123 | 132 |
133 |
134 | 225 | 226 | -------------------------------------------------------------------------------- /API文档/Classes/WBWebpageObject.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | WBWebpageObject Class Reference 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 |
14 |

WeiboSDK

15 | WEIBO 16 |
17 | 18 | 21 | 53 |
54 | 83 |
84 |
85 | 86 | 92 | 97 |
98 | 99 |
100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 |
Inherits fromWBBaseMediaObject : NSObject
Declared inWeiboSDK.h
108 | 109 | 110 | 111 | 112 |
113 | 114 |

Overview

115 |

消息中包含的网页数据对象

116 |
117 | 118 | 119 | 120 | 121 | 122 |
123 | 124 |

Tasks

125 | 126 | 127 | 128 | 129 | 130 |
    131 |
  • 132 | 133 |   webpageUrl 134 | 135 | property 136 | 137 |
  • 138 |
139 | 140 |
141 | 142 | 143 | 144 | 145 | 146 |
147 | 148 |

Properties

149 | 150 |
151 | 152 |

webpageUrl

153 | 154 | 155 | 156 |
157 |

网页的url地址

158 |
159 | 160 | 161 | 162 |
@property (nonatomic, retain) NSString *webpageUrl
163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 |
173 |

Discussion

174 |

Warning: 不能为空且长度不能超过255

175 |
176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 |
184 |

Declared In

185 | WeiboSDK.h
186 |
187 | 188 | 189 |
190 | 191 |
192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 |
201 | 207 | 216 |
217 |
218 | 309 | 310 | -------------------------------------------------------------------------------- /API文档/Constants/WeiboSDKResponseStatusCode.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | WeiboSDKResponseStatusCode Constants Reference 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 |
14 |

WeiboSDK

15 | WEIBO 16 |
17 | 18 | 21 | 36 |
37 | 46 |
47 |
48 | 49 | 55 | 60 |
61 | 62 |
63 | 64 | 65 | 66 | 67 |
Declared inWeiboSDK.h
68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 |

WeiboSDKResponseStatusCode

78 | 79 |
80 | 81 | 82 |

Definition

83 | typedef NS_ENUM(NSInteger, WeiboSDKResponseStatusCode ) {
84 | 85 |    WeiboSDKResponseStatusCodeSuccess = 0,
86 | 87 |    WeiboSDKResponseStatusCodeUserCancel = -1,
88 | 89 |    WeiboSDKResponseStatusCodeSentFail = -2,
90 | 91 |    WeiboSDKResponseStatusCodeAuthDeny = -3,
92 | 93 |    WeiboSDKResponseStatusCodeUserCancelInstall = -4,
94 | 95 |    WeiboSDKResponseStatusCodeUnsupport = -99,
96 | 97 |    WeiboSDKResponseStatusCodeUnknown = -100,
98 | 99 | };
100 | 101 |
102 | 103 |
104 |

Constants

105 |
106 | 107 |
WeiboSDKResponseStatusCodeSuccess
108 |
109 | 110 | 111 |

112 | Declared In WeiboSDK.h. 113 |

114 | 115 |
116 | 117 |
WeiboSDKResponseStatusCodeUserCancel
118 |
119 | 120 | 121 |

122 | Declared In WeiboSDK.h. 123 |

124 | 125 |
126 | 127 |
WeiboSDKResponseStatusCodeSentFail
128 |
129 | 130 | 131 |

132 | Declared In WeiboSDK.h. 133 |

134 | 135 |
136 | 137 |
WeiboSDKResponseStatusCodeAuthDeny
138 |
139 | 140 | 141 |

142 | Declared In WeiboSDK.h. 143 |

144 | 145 |
146 | 147 |
WeiboSDKResponseStatusCodeUserCancelInstall
148 |
149 | 150 | 151 |

152 | Declared In WeiboSDK.h. 153 |

154 | 155 |
156 | 157 |
WeiboSDKResponseStatusCodeUnsupport
158 |
159 | 160 | 161 |

162 | Declared In WeiboSDK.h. 163 |

164 | 165 |
166 | 167 |
WeiboSDKResponseStatusCodeUnknown
168 |
169 | 170 | 171 |

172 | Declared In WeiboSDK.h. 173 |

174 | 175 |
176 | 177 |
178 |
179 | 180 | 181 | 182 | 183 |
184 | 190 | 199 |
200 |
201 | 292 | 293 | -------------------------------------------------------------------------------- /API文档/Protocols/WBHttpRequestDelegate.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | WBHttpRequestDelegate Protocol Reference 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 |
14 |

WeiboSDK

15 | WEIBO 16 |
17 | 18 | 21 | 57 |
58 | 91 |
92 |
93 | 94 | 100 | 105 |
106 | 107 |
108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 |
Conforms toNSObject
Declared inWeiboSDK.h
116 | 117 | 118 | 119 | 120 |
121 | 122 |

Overview

123 |

接收并处理来自微博sdk对于网络请求接口的调用响应 以及openAPI 124 | 如inviteFriend、logOutWithToken的请求

125 |
126 | 127 | 128 | 129 | 130 | 131 |
132 | 133 |

Tasks

134 | 135 | 136 | 137 | 138 | 139 | 160 | 161 |
162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 |
172 | 173 |

Instance Methods

174 | 175 |
176 | 177 |

request:didFailWithError:

178 | 179 | 180 | 181 |
182 |

收到一个来自微博Http请求失败的响应

183 |
184 | 185 | 186 | 187 |
- (void)request:(WBHttpRequest *)request didFailWithError:(NSError *)error
188 | 189 | 190 | 191 |
192 |

Parameters

193 | 194 |
195 |
error
196 |

错误信息

197 |
198 | 199 |
200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 |
214 |

Declared In

215 | WeiboSDK.h
216 |
217 | 218 | 219 |
220 | 221 |
222 | 223 |

request:didFinishLoadingWithResult:

224 | 225 | 226 | 227 |
228 |

收到一个来自微博Http请求的网络返回

229 |
230 | 231 | 232 | 233 |
- (void)request:(WBHttpRequest *)request didFinishLoadingWithResult:(NSString *)result
234 | 235 | 236 | 237 |
238 |

Parameters

239 | 240 |
241 |
result
242 |

请求返回结果

243 |
244 | 245 |
246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 |
260 |

Declared In

261 | WeiboSDK.h
262 |
263 | 264 | 265 |
266 | 267 |
268 | 269 |

request:didReceiveResponse:

270 | 271 | 272 | 273 |
274 |

收到一个来自微博Http请求的响应

275 |
276 | 277 | 278 | 279 |
- (void)request:(WBHttpRequest *)request didReceiveResponse:(NSURLResponse *)response
280 | 281 | 282 | 283 |
284 |

Parameters

285 | 286 |
287 |
response
288 |

具体的响应对象

289 |
290 | 291 |
292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 |
306 |

Declared In

307 | WeiboSDK.h
308 |
309 | 310 | 311 |
312 | 313 |
314 | 315 | 316 | 317 | 318 |
319 | 325 | 334 |
335 |
336 | 427 | 428 | -------------------------------------------------------------------------------- /API文档/Protocols/WeiboSDKDelegate.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | WeiboSDKDelegate Protocol Reference 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 |
14 |

WeiboSDK

15 | WEIBO 16 |
17 | 18 | 21 | 55 |
56 | 87 |
88 |
89 | 90 | 96 | 101 |
102 | 103 |
104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 |
Conforms toNSObject
Declared inWeiboSDK.h
112 | 113 | 114 | 115 | 116 |
117 | 118 |

Overview

119 |

接收并处理来至微博客户端程序的事件消息

120 |
121 | 122 | 123 | 124 | 125 | 126 |
127 | 128 |

Tasks

129 | 130 | 131 | 132 | 133 | 134 | 149 | 150 |
151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 |
161 | 162 |

Instance Methods

163 | 164 |
165 | 166 |

didReceiveWeiboRequest:

167 | 168 | 169 | 170 |
171 |

收到一个来自微博客户端程序的请求

172 |
173 | 174 | 175 | 176 |
- (void)didReceiveWeiboRequest:(WBBaseRequest *)request
177 | 178 | 179 | 180 |
181 |

Parameters

182 | 183 |
184 |
request
185 |

具体的请求对象

186 |
187 | 188 |
189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 |
197 |

Discussion

198 |

收到微博的请求后,第三方应用应该按照请求类型进行处理,处理完后必须通过 [WeiboSDK sendResponse:] 将结果回传给微博

199 |
200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 |
208 |

Declared In

209 | WeiboSDK.h
210 |
211 | 212 | 213 |
214 | 215 |
216 | 217 |

didReceiveWeiboResponse:

218 | 219 | 220 | 221 |
222 |

收到一个来自微博客户端程序的响应

223 |
224 | 225 | 226 | 227 |
- (void)didReceiveWeiboResponse:(WBBaseResponse *)response
228 | 229 | 230 | 231 |
232 |

Parameters

233 | 234 |
235 |
response
236 |

具体的响应对象

237 |
238 | 239 |
240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 |
248 |

Discussion

249 |

收到微博的响应后,第三方应用可以通过响应类型、响应的数据和 WBBaseResponse.userInfo 中的数据完成自己的功能

250 |
251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 |
259 |

Declared In

260 | WeiboSDK.h
261 |
262 | 263 | 264 |
265 | 266 |
267 | 268 | 269 | 270 | 271 |
272 | 278 | 287 |
288 |
289 | 380 | 381 | -------------------------------------------------------------------------------- /API文档/css/styles.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif; 3 | font-size: 13px; 4 | } 5 | 6 | code { 7 | font-family: Courier, Consolas, monospace; 8 | font-size: 13px; 9 | color: #666; 10 | } 11 | 12 | pre { 13 | font-family: Courier, Consolas, monospace; 14 | font-size: 13px; 15 | line-height: 18px; 16 | tab-interval: 0.5em; 17 | border: 1px solid #C7CFD5; 18 | background-color: #F1F5F9; 19 | color: #666; 20 | padding: 0.3em 1em; 21 | } 22 | 23 | ul { 24 | list-style-type: square; 25 | } 26 | 27 | li { 28 | margin-bottom: 10px; 29 | } 30 | 31 | a, a code { 32 | text-decoration: none; 33 | color: #36C; 34 | } 35 | 36 | a:hover, a:hover code { 37 | text-decoration: underline; 38 | color: #36C; 39 | } 40 | 41 | h2 { 42 | border-bottom: 1px solid #8391A8; 43 | color: #3C4C6C; 44 | font-size: 187%; 45 | font-weight: normal; 46 | margin-top: 1.75em; 47 | padding-bottom: 2px; 48 | } 49 | 50 | table { 51 | margin-bottom: 4em; 52 | border-collapse:collapse; 53 | vertical-align: middle; 54 | } 55 | 56 | td { 57 | border: 1px solid #9BB3CD; 58 | padding: .667em; 59 | font-size: 100%; 60 | } 61 | 62 | th { 63 | border: 1px solid #9BB3CD; 64 | padding: .3em .667em .3em .667em; 65 | background: #93A5BB; 66 | font-size: 103%; 67 | font-weight: bold; 68 | color: white; 69 | text-align: left; 70 | } 71 | 72 | /* @group Common page elements */ 73 | 74 | #top_header { 75 | height: 91px; 76 | left: 0; 77 | min-width: 598px; 78 | position: absolute; 79 | right: 0; 80 | top: 0; 81 | z-index: 900; 82 | } 83 | 84 | #footer { 85 | clear: both; 86 | padding-top: 20px; 87 | text-align: center; 88 | } 89 | 90 | #contents, #overview_contents { 91 | -webkit-overflow-scrolling: touch; 92 | border-top: 1px solid #A9A9A9; 93 | position: absolute; 94 | top: 90px; 95 | left: 0; 96 | right: 0; 97 | bottom: 0; 98 | overflow-x: hidden; 99 | overflow-y: auto; 100 | padding-left: 2em; 101 | padding-right: 2em; 102 | padding-top: 1em; 103 | min-width: 550px; 104 | } 105 | 106 | #contents.isShowingTOC { 107 | left: 230px; 108 | min-width: 320px; 109 | } 110 | 111 | .copyright { 112 | font-size: 12px; 113 | } 114 | 115 | .generator { 116 | font-size: 11px; 117 | } 118 | 119 | .main-navigation ul li { 120 | display: inline; 121 | margin-left: 15px; 122 | list-style: none; 123 | } 124 | 125 | .navigation-top { 126 | clear: both; 127 | float: right; 128 | } 129 | 130 | .navigation-bottom { 131 | clear: both; 132 | float: right; 133 | margin-top: 20px; 134 | margin-bottom: -10px; 135 | } 136 | 137 | .open > .disclosure { 138 | background-image: url("../img/disclosure_open.png"); 139 | } 140 | 141 | .disclosure { 142 | background: url("../img/disclosure.png") no-repeat scroll 0 0; 143 | } 144 | 145 | .disclosure, .nodisclosure { 146 | display: inline-block; 147 | height: 8px; 148 | margin-right: 5px; 149 | position: relative; 150 | width: 9px; 151 | } 152 | 153 | /* @end */ 154 | 155 | /* @group Header */ 156 | 157 | #top_header #library { 158 | background: url("../img/library_background.png") repeat-x 0 0 #485E78; 159 | background-color: #ccc; 160 | height: 35px; 161 | font-size: 115%; 162 | } 163 | 164 | #top_header #library #libraryTitle { 165 | color: #FFFFFF; 166 | margin-left: 15px; 167 | text-shadow: 0 -1px 0 #485E78; 168 | top: 8px; 169 | position: absolute; 170 | } 171 | 172 | #libraryTitle { 173 | left: 0; 174 | } 175 | 176 | #top_header #library #developerHome { 177 | color: #92979E; 178 | right: 15px; 179 | top: 8px; 180 | position: absolute; 181 | } 182 | 183 | #top_header #library a:hover { 184 | text-decoration: none; 185 | } 186 | 187 | #top_header #title { 188 | background: url("../img/title_background.png") repeat-x 0 0 #8A98A9; 189 | border-bottom: 1px solid #757575; 190 | height: 25px; 191 | overflow: hidden; 192 | } 193 | 194 | #top_header h1 { 195 | font-size: 105%; 196 | font-weight: normal; 197 | margin: 0; 198 | padding: 3px 0 2px; 199 | text-align: center; 200 | /*text-shadow: 0 1px 0 #D5D5D5;*/ 201 | white-space: nowrap; 202 | } 203 | 204 | #headerButtons { 205 | background-color: #D8D8D8; 206 | background-image: url("../img/button_bar_background.png"); 207 | border-bottom: 0px solid #EDEDED; 208 | border-top: 0px solid #a8a8a8; 209 | font-size: 8pt; 210 | height: 28px; 211 | left: 0; 212 | list-style: none outside none; 213 | margin: 0; 214 | overflow: hidden; 215 | padding: 0; 216 | position: absolute; 217 | right: 0; 218 | top: 61px; 219 | } 220 | 221 | #headerButtons li { 222 | background-repeat: no-repeat; 223 | display: inline; 224 | margin-top: 0; 225 | margin-bottom: 0; 226 | padding: 0; 227 | } 228 | 229 | #toc_button button { 230 | background-color: #EBEEF1; 231 | border-color: #ACACAC; 232 | border-style: none solid none none; 233 | border-width: 0 1px 0 0; 234 | height: 28px; 235 | margin: 0; 236 | padding-left: 30px; 237 | text-align: left; 238 | width: 230px; 239 | } 240 | 241 | li#jumpto_button { 242 | left: 230px; 243 | margin-left: 0; 244 | position: absolute; 245 | } 246 | 247 | li#jumpto_button select { 248 | height: 22px; 249 | margin: 5px 2px 0 10px; 250 | max-width: 300px; 251 | } 252 | 253 | /* @end */ 254 | 255 | /* @group Table of contents */ 256 | 257 | #tocContainer.isShowingTOC { 258 | border-right: 1px solid #ACACAC; 259 | display: block; 260 | overflow-x: hidden; 261 | overflow-y: auto; 262 | padding: 0; 263 | } 264 | 265 | #tocContainer { 266 | background-color: #EBEEF1; 267 | border-top: 1px solid #ACACAC; 268 | bottom: 0; 269 | display: none; 270 | left: 0; 271 | overflow: hidden; 272 | position: absolute; 273 | top: 90px; 274 | width: 229px; 275 | } 276 | 277 | #tocContainer > ul#toc { 278 | font-size: 11px; 279 | margin: 0; 280 | padding: 12px 0 18px; 281 | width: 209px; 282 | -moz-user-select: none; 283 | -webkit-user-select: none; 284 | user-select: none; 285 | } 286 | 287 | #tocContainer > ul#toc > li { 288 | margin: 0; 289 | padding: 0 0 7px 30px; 290 | text-indent: -15px; 291 | } 292 | 293 | #tocContainer > ul#toc > li > .sectionName a { 294 | color: #000000; 295 | font-weight: bold; 296 | } 297 | 298 | #tocContainer > ul#toc > li > .sectionName a:hover { 299 | text-decoration: none; 300 | } 301 | 302 | #tocContainer > ul#toc li.children > ul { 303 | display: none; 304 | height: 0; 305 | } 306 | 307 | #tocContainer > ul#toc > li > ul { 308 | margin: 0; 309 | padding: 0; 310 | } 311 | 312 | #tocContainer > ul#toc > li > ul, ul#toc > li > ul > li { 313 | margin-left: 0; 314 | margin-bottom: 0; 315 | padding-left: 15px; 316 | } 317 | 318 | #tocContainer > ul#toc > li ul { 319 | list-style: none; 320 | margin-right: 0; 321 | padding-right: 0; 322 | } 323 | 324 | #tocContainer > ul#toc li.children.open > ul { 325 | display: block; 326 | height: auto; 327 | margin-left: -15px; 328 | padding-left: 0; 329 | } 330 | 331 | #tocContainer > ul#toc > li > ul, ul#toc > li > ul > li { 332 | margin-left: 0; 333 | padding-left: 15px; 334 | } 335 | 336 | #tocContainer li ul li { 337 | margin-top: 0.583em; 338 | overflow: hidden; 339 | text-overflow: ellipsis; 340 | white-space: nowrap; 341 | } 342 | 343 | #tocContainer li ul li span.sectionName { 344 | white-space: normal; 345 | } 346 | 347 | #tocContainer > ul#toc > li > ul > li > .sectionName a { 348 | font-weight: bold; 349 | } 350 | 351 | #tocContainer > ul#toc > li > ul a { 352 | color: #4F4F4F; 353 | } 354 | 355 | /* @end */ 356 | 357 | /* @group Index formatting */ 358 | 359 | .index-title { 360 | font-size: 13px; 361 | font-weight: normal; 362 | } 363 | 364 | .index-column { 365 | float: left; 366 | width: 30%; 367 | min-width: 200px; 368 | font-size: 11px; 369 | } 370 | 371 | .index-column ul { 372 | margin: 8px 0 0 0; 373 | padding: 0; 374 | list-style: none; 375 | } 376 | 377 | .index-column ul li { 378 | margin: 0 0 3px 0; 379 | padding: 0; 380 | } 381 | 382 | .hierarchy-column { 383 | min-width: 400px; 384 | } 385 | 386 | .hierarchy-column ul { 387 | margin: 3px 0 0 15px; 388 | } 389 | 390 | .hierarchy-column ul li { 391 | list-style-type: square; 392 | } 393 | 394 | /* @end */ 395 | 396 | /* @group Common formatting elements */ 397 | 398 | .title { 399 | font-weight: normal; 400 | font-size: 215%; 401 | margin-top:0; 402 | } 403 | 404 | .subtitle { 405 | font-weight: normal; 406 | font-size: 180%; 407 | color: #3C4C6C; 408 | border-bottom: 1px solid #5088C5; 409 | } 410 | 411 | .subsubtitle { 412 | font-weight: normal; 413 | font-size: 145%; 414 | height: 0.7em; 415 | } 416 | 417 | .note { 418 | border: 1px solid #5088C5; 419 | background-color: white; 420 | margin: 1.667em 0 1.75em 0; 421 | padding: 0 .667em .083em .750em; 422 | } 423 | 424 | .warning { 425 | border: 1px solid #5088C5; 426 | background-color: #F0F3F7; 427 | margin-bottom: 0.5em; 428 | padding: 0.3em 0.8em; 429 | } 430 | 431 | .bug { 432 | border: 1px solid #000; 433 | background-color: #ffffcc; 434 | margin-bottom: 0.5em; 435 | padding: 0.3em 0.8em; 436 | } 437 | 438 | .deprecated { 439 | color: #F60425; 440 | } 441 | 442 | /* @end */ 443 | 444 | /* @group Common layout */ 445 | 446 | .section { 447 | margin-top: 3em; 448 | } 449 | 450 | /* @end */ 451 | 452 | /* @group Object specification section */ 453 | 454 | .section-specification { 455 | margin-left: 2.5em; 456 | margin-right: 2.5em; 457 | font-size: 12px; 458 | } 459 | 460 | .section-specification table { 461 | margin-bottom: 0em; 462 | border-top: 1px solid #d6e0e5; 463 | } 464 | 465 | .section-specification td { 466 | vertical-align: top; 467 | border-bottom: 1px solid #d6e0e5; 468 | border-left-width: 0px; 469 | border-right-width: 0px; 470 | border-top-width: 0px; 471 | padding: .6em; 472 | } 473 | 474 | .section-specification .specification-title { 475 | font-weight: bold; 476 | } 477 | 478 | /* @end */ 479 | 480 | /* @group Tasks section */ 481 | 482 | .task-list { 483 | list-style-type: none; 484 | padding-left: 0px; 485 | } 486 | 487 | .task-list li { 488 | margin-bottom: 3px; 489 | } 490 | 491 | .task-item-suffix { 492 | color: #996; 493 | font-size: 12px; 494 | font-style: italic; 495 | margin-left: 0.5em; 496 | } 497 | 498 | span.tooltip span.tooltip { 499 | font-size: 1.0em; 500 | display: none; 501 | padding: 0.3em; 502 | border: 1px solid #aaa; 503 | background-color: #fdfec8; 504 | color: #000; 505 | text-align: left; 506 | } 507 | 508 | span.tooltip:hover span.tooltip { 509 | display: block; 510 | position: absolute; 511 | margin-left: 2em; 512 | } 513 | 514 | /* @end */ 515 | 516 | /* @group Method section */ 517 | 518 | .section-method { 519 | margin-top: 2.3em; 520 | } 521 | 522 | .method-title { 523 | margin-bottom: 1.5em; 524 | } 525 | 526 | .method-subtitle { 527 | margin-top: 0.7em; 528 | margin-bottom: 0.2em; 529 | } 530 | 531 | .method-subsection p { 532 | margin-top: 0.4em; 533 | margin-bottom: 0.8em; 534 | } 535 | 536 | .method-declaration { 537 | margin-top:1.182em; 538 | margin-bottom:.909em; 539 | } 540 | 541 | .method-declaration code { 542 | font:14px Courier, Consolas, monospace; 543 | color:#000; 544 | } 545 | 546 | .declaration { 547 | color: #000; 548 | } 549 | 550 | .termdef { 551 | margin-bottom: 10px; 552 | margin-left: 0px; 553 | margin-right: 0px; 554 | margin-top: 0px; 555 | } 556 | 557 | .termdef dt { 558 | margin: 0; 559 | padding: 0; 560 | } 561 | 562 | .termdef dd { 563 | margin-bottom: 6px; 564 | margin-left: 16px; 565 | margin-right: 0px; 566 | margin-top: 1px; 567 | } 568 | 569 | .termdef dd p { 570 | margin-bottom: 6px; 571 | margin-left: 0px; 572 | margin-right: 0px; 573 | margin-top: -1px; 574 | } 575 | 576 | .argument-def { 577 | margin-top: 0.3em; 578 | margin-bottom: 0.3em; 579 | } 580 | 581 | .argument-def dd { 582 | margin-left: 1.25em; 583 | } 584 | 585 | .see-also-section ul { 586 | list-style-type: none; 587 | padding-left: 0px; 588 | margin-top: 0; 589 | } 590 | 591 | .see-also-section li { 592 | margin-bottom: 3px; 593 | } 594 | 595 | .declared-in-ref { 596 | color: #666; 597 | } 598 | 599 | #tocContainer.hideInXcode { 600 | display: none; 601 | border: 0px solid black; 602 | } 603 | 604 | #top_header.hideInXcode { 605 | display: none; 606 | } 607 | 608 | #contents.hideInXcode { 609 | border: 0px solid black; 610 | top: 0px; 611 | left: 0px; 612 | } 613 | 614 | /* @end */ 615 | 616 | -------------------------------------------------------------------------------- /API文档/css/stylesPrint.css: -------------------------------------------------------------------------------- 1 | 2 | header { 3 | display: none; 4 | } 5 | 6 | div.main-navigation, div.navigation-top { 7 | display: none; 8 | } 9 | 10 | div#overview_contents, div#contents.isShowingTOC, div#contents { 11 | overflow: visible; 12 | position: relative; 13 | top: 0px; 14 | border: none; 15 | left: 0; 16 | } 17 | #tocContainer.isShowingTOC { 18 | display: none; 19 | } 20 | nav { 21 | display: none; 22 | } -------------------------------------------------------------------------------- /API文档/hierarchy.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | WeiboSDK Hierarchy 6 | 7 | 8 | 9 | 10 | 11 |
12 |
13 |

WeiboSDK

14 | WEIBO 15 |
16 | 17 | 20 | 21 |
22 |
23 |
24 | 27 | 32 |
33 | 34 |
35 |

Class Hierarchy

36 | 37 | 96 | 97 |
98 | 99 | 100 | 101 |
102 | 103 |

Protocol References

104 | 111 | 112 | 113 |

Constant References

114 | 119 | 120 | 121 |
122 | 123 |
124 | 127 | 137 |
138 |
139 | 140 | -------------------------------------------------------------------------------- /API文档/img/button_bar_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobileresearch/weibo_ios_sdk_sso-oauth/e8b25034145c35c282f3751f5e0b0a4b4723625e/API文档/img/button_bar_background.png -------------------------------------------------------------------------------- /API文档/img/disclosure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobileresearch/weibo_ios_sdk_sso-oauth/e8b25034145c35c282f3751f5e0b0a4b4723625e/API文档/img/disclosure.png -------------------------------------------------------------------------------- /API文档/img/disclosure_open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobileresearch/weibo_ios_sdk_sso-oauth/e8b25034145c35c282f3751f5e0b0a4b4723625e/API文档/img/disclosure_open.png -------------------------------------------------------------------------------- /API文档/img/library_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobileresearch/weibo_ios_sdk_sso-oauth/e8b25034145c35c282f3751f5e0b0a4b4723625e/API文档/img/library_background.png -------------------------------------------------------------------------------- /API文档/img/title_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobileresearch/weibo_ios_sdk_sso-oauth/e8b25034145c35c282f3751f5e0b0a4b4723625e/API文档/img/title_background.png -------------------------------------------------------------------------------- /API文档/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | WeiboSDK Reference 6 | 7 | 8 | 9 | 10 | 11 |
12 |
13 |

WeiboSDK

14 | WEIBO 15 |
16 | 17 | 20 | 21 |
22 |
23 |
24 | 27 | 32 |
33 | 34 | 35 | 36 | 37 | 38 |
39 |

Class References

40 | 77 |
78 | 79 | 80 | 81 |
82 | 83 |

Protocol References

84 | 91 | 92 | 93 |

Constant References

94 | 99 | 100 | 101 |
102 | 103 |
104 | 107 | 117 |
118 |
119 | 120 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ReadMe 2 | 为了方便第三方开发者快速集成微博 SDK,我们提供了以下联系方式,协助开发者进行集成: 3 | **QQ群:284084420** 4 | **邮箱:sdk4wb@sina.cn** 5 | **微博:移动新技术** 6 | 另外,关于SDK的Bug反馈、用户体验、以及好的建议,请大家尽量提交到 Github 上,我们会尽快解决。 7 | 目前,我们正在逐步完善微博 SDK,争取为第三方开发者提供一个规范、简单易用、可靠、可扩展、可定制的 SDK,敬请期待。 8 | 9 | # 概述 10 | 微博 IOS 平台 SDK 为第三方应用提供了简单易用的微博API调用服务,使第三方客户端无需了解复杂的验证机制即可进行授权登陆,并提供微博分享功能,可直接通过微博官方客户端分享微博。 11 | 12 | # 名词解释 13 | | 名词 | 注解 | 14 | | -------- | :----- | 15 | | AppKey | 分配给每个第三方应用的 app key。用于鉴权身份,显示来源等功能。| 16 | | RedirectURI | 应用回调页面,可在新浪微博开放平台->我的应用->应用信息->高级应用->授权设置->应用回调页中找到。| 17 | | AccessToken | 表示用户身份的 token,用于微博 API 的调用。| 18 | | Expire in | 过期时间,用于判断登录是否过期。| 19 | 20 | # 功能列表 21 | ### 1. 认证授权 22 | 为开发者提供 Oauth2.0 授权认证,并集成 SSO 登录功能。 23 | ### 2. 微博分享 24 | 从第三方应用分享信息到微博,目前只支持通过微博官方客户端进行分享。 25 | ### 3. 登入登出 26 | 微博登入按钮主要是简化用户进行 SSO 登陆,实际上,它内部是对 SSO 认证流程进行了简单的封装。 27 | 微博登出按钮主要提供一键登出的功能,帮助开发者主动取消用户的授权。 28 | ### 4. 好友邀请 29 | 好友邀请接口,支持登录用户向自己的微博互粉好友发送私信邀请、礼物。 30 | ### 5.OpenAPI通用调用 31 | OpenAPI通用调用接口,帮助开发者访问开放平台open api(http://open.weibo.com/wiki/微博API) 32 | 33 | # 适用范围 34 | 使用此SDK需满足以下条件: 35 | 36 | - 在新浪微博开放平台注册并创建应用 37 | - 已定义本应用的授权回调页 38 | - 已选择应用为IOS平台,并正确填写Bundle id和appple id 39 | 40 | 注: 关于授权回调页对移动客户端应用来说对用户是不可见的,所以定义为何种形式都将不影响,但是没有定义将无法使用SDK认证登录。建议使用默认回调页 https://api.weibo.com/oauth2/default.html 41 | -------------------------------------------------------------------------------- /SDKDemo20131113.ipa: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobileresearch/weibo_ios_sdk_sso-oauth/e8b25034145c35c282f3751f5e0b0a4b4723625e/SDKDemo20131113.ipa -------------------------------------------------------------------------------- /WeiboSDKDemo/WeiboSDKDemo/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // WeiboSDKDemo 4 | // 5 | // Created by Wade Cheng on 3/29/13. 6 | // Copyright (c) 2013 SINA iOS Team. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class SendMessageToWeiboViewController; 12 | 13 | @interface AppDelegate : UIResponder 14 | { 15 | NSString* wbtoken; 16 | } 17 | 18 | @property (strong, nonatomic) UIWindow *window; 19 | 20 | @property (strong, nonatomic) SendMessageToWeiboViewController *viewController; 21 | 22 | @property (strong, retain) NSString* wbtoken; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /WeiboSDKDemo/WeiboSDKDemo/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // WeiboSDKDemo 4 | // 5 | // Created by Wade Cheng on 3/29/13. 6 | // Copyright (c) 2013 SINA iOS Team. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | #import "SendMessageToWeiboViewController.h" 12 | #import "ProvideMessageForWeiboViewController.h" 13 | 14 | @interface WBBaseRequest () 15 | - (void)debugPrint; 16 | @end 17 | 18 | @interface WBBaseResponse () 19 | - (void)debugPrint; 20 | @end 21 | 22 | @implementation AppDelegate 23 | 24 | @synthesize wbtoken; 25 | 26 | - (void)dealloc 27 | { 28 | [_window release]; 29 | [_viewController release]; 30 | [super dealloc]; 31 | } 32 | 33 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 34 | { 35 | [WeiboSDK enableDebugMode:YES]; 36 | [WeiboSDK registerApp:kAppKey]; 37 | 38 | 39 | self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; 40 | // Override point for customization after application launch. 41 | self.viewController = [[[SendMessageToWeiboViewController alloc] initWithNibName:nil bundle:nil] autorelease]; 42 | self.window.rootViewController = self.viewController; 43 | [self.window makeKeyAndVisible]; 44 | return YES; 45 | } 46 | 47 | - (void)applicationWillResignActive:(UIApplication *)application 48 | { 49 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 50 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 51 | } 52 | 53 | - (void)applicationDidEnterBackground:(UIApplication *)application 54 | { 55 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 56 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 57 | } 58 | 59 | - (void)applicationWillEnterForeground:(UIApplication *)application 60 | { 61 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 62 | } 63 | 64 | - (void)applicationDidBecomeActive:(UIApplication *)application 65 | { 66 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 67 | } 68 | 69 | - (void)applicationWillTerminate:(UIApplication *)application 70 | { 71 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 72 | } 73 | 74 | - (void)didReceiveWeiboRequest:(WBBaseRequest *)request 75 | { 76 | if ([request isKindOfClass:WBProvideMessageForWeiboRequest.class]) 77 | { 78 | ProvideMessageForWeiboViewController *controller = [[[ProvideMessageForWeiboViewController alloc] init] autorelease]; 79 | [self.viewController presentModalViewController:controller animated:YES]; 80 | } 81 | } 82 | 83 | - (void)didReceiveWeiboResponse:(WBBaseResponse *)response 84 | { 85 | if ([response isKindOfClass:WBSendMessageToWeiboResponse.class]) 86 | { 87 | NSString *title = @"发送结果"; 88 | NSString *message = [NSString stringWithFormat:@"响应状态: %d\n响应UserInfo数据: %@\n原请求UserInfo数据: %@", 89 | response.statusCode, response.userInfo, response.requestUserInfo]; 90 | UIAlertView *alert = [[UIAlertView alloc] initWithTitle:title 91 | message:message 92 | delegate:nil 93 | cancelButtonTitle:@"确定" 94 | otherButtonTitles:nil]; 95 | [alert show]; 96 | [alert release]; 97 | } 98 | else if ([response isKindOfClass:WBAuthorizeResponse.class]) 99 | { 100 | NSString *title = @"认证结果"; 101 | NSString *message = [NSString stringWithFormat:@"响应状态: %d\nresponse.userId: %@\nresponse.accessToken: %@\n响应UserInfo数据: %@\n原请求UserInfo数据: %@", 102 | response.statusCode, [(WBAuthorizeResponse *)response userID], [(WBAuthorizeResponse *)response accessToken], response.userInfo, response.requestUserInfo]; 103 | UIAlertView *alert = [[UIAlertView alloc] initWithTitle:title 104 | message:message 105 | delegate:nil 106 | cancelButtonTitle:@"确定" 107 | otherButtonTitles:nil]; 108 | 109 | self.wbtoken = [(WBAuthorizeResponse *)response accessToken]; 110 | 111 | [alert show]; 112 | [alert release]; 113 | } 114 | } 115 | 116 | - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation 117 | { 118 | return [WeiboSDK handleOpenURL:url delegate:self]; 119 | } 120 | 121 | @end 122 | -------------------------------------------------------------------------------- /WeiboSDKDemo/WeiboSDKDemo/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobileresearch/weibo_ios_sdk_sso-oauth/e8b25034145c35c282f3751f5e0b0a4b4723625e/WeiboSDKDemo/WeiboSDKDemo/Default-568h@2x.png -------------------------------------------------------------------------------- /WeiboSDKDemo/WeiboSDKDemo/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobileresearch/weibo_ios_sdk_sso-oauth/e8b25034145c35c282f3751f5e0b0a4b4723625e/WeiboSDKDemo/WeiboSDKDemo/Default.png -------------------------------------------------------------------------------- /WeiboSDKDemo/WeiboSDKDemo/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobileresearch/weibo_ios_sdk_sso-oauth/e8b25034145c35c282f3751f5e0b0a4b4723625e/WeiboSDKDemo/WeiboSDKDemo/Default@2x.png -------------------------------------------------------------------------------- /WeiboSDKDemo/WeiboSDKDemo/ProvideMessageForWeiboViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ProvideMessageForWeiboViewController.h 3 | // WeiboSDKDemo 4 | // 5 | // Created by Wade Cheng on 4/1/13. 6 | // Copyright (c) 2013 SINA iOS Team. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ProvideMessageForWeiboViewController : UIViewController 12 | 13 | @property (nonatomic, retain) UILabel *titleLabel; 14 | @property (nonatomic, retain) UIButton *shareButton; 15 | 16 | - (WBMessageObject *)messageToShare; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /WeiboSDKDemo/WeiboSDKDemo/ProvideMessageForWeiboViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ProvideMessageForWeiboViewController.m 3 | // WeiboSDKDemo 4 | // 5 | // Created by Wade Cheng on 4/1/13. 6 | // Copyright (c) 2013 SINA iOS Team. All rights reserved. 7 | // 8 | 9 | #import "ProvideMessageForWeiboViewController.h" 10 | 11 | @interface ProvideMessageForWeiboViewController () 12 | 13 | @property (nonatomic, retain) UISwitch *textSwitch; 14 | @property (nonatomic, retain) UISwitch *imageSwitch; 15 | @property (nonatomic, retain) UISwitch *mediaSwitch; 16 | 17 | @end 18 | 19 | @implementation ProvideMessageForWeiboViewController 20 | 21 | @synthesize textSwitch; 22 | @synthesize imageSwitch; 23 | @synthesize mediaSwitch; 24 | @synthesize titleLabel; 25 | @synthesize shareButton; 26 | 27 | - (void)dealloc 28 | { 29 | self.textSwitch = nil; 30 | self.imageSwitch = nil; 31 | self.mediaSwitch = nil; 32 | self.titleLabel = nil; 33 | self.shareButton = nil; 34 | [super dealloc]; 35 | } 36 | 37 | - (UIButton *)buttonWithTitle:(NSString *)title selector:(SEL)selector frame:(CGRect)frame 38 | { 39 | UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect]; 40 | [button setTitle:title forState:UIControlStateNormal]; 41 | [button addTarget:self action:selector forControlEvents:UIControlEventTouchUpInside]; 42 | button.frame = frame; 43 | button.backgroundColor = [UIColor clearColor]; 44 | return button; 45 | } 46 | 47 | - (void)viewDidLoad 48 | { 49 | [super viewDidLoad]; 50 | self.view.backgroundColor = [UIColor whiteColor]; 51 | 52 | self.titleLabel = [[[UILabel alloc] initWithFrame:CGRectMake(0, 0, 320, 100)] autorelease]; 53 | self.titleLabel.textAlignment = UITextAlignmentCenter; 54 | self.titleLabel.numberOfLines = 3; 55 | [self.view addSubview:self.titleLabel]; 56 | [self.titleLabel setText:@"微博给第三方应用发送提供消息的请求后,第三方应用返回消息给微博"]; 57 | 58 | UILabel *textLabel = [[[UILabel alloc] initWithFrame:CGRectMake(10, 110, 80, 30)] autorelease]; 59 | textLabel.text = @"文字"; 60 | textLabel.backgroundColor = [UIColor clearColor]; 61 | textLabel.textAlignment = UITextAlignmentCenter; 62 | self.textSwitch = [[[UISwitch alloc] initWithFrame:CGRectMake(100, 110, 120, 30)] autorelease]; 63 | [self.view addSubview:textLabel]; 64 | [self.view addSubview:self.textSwitch]; 65 | 66 | UILabel *imageLabel = [[[UILabel alloc] initWithFrame:CGRectMake(10, 150, 80, 30)] autorelease]; 67 | imageLabel.text = @"图片"; 68 | imageLabel.backgroundColor = [UIColor clearColor]; 69 | imageLabel.textAlignment = UITextAlignmentCenter; 70 | self.imageSwitch = [[[UISwitch alloc] initWithFrame:CGRectMake(100, 150, 120, 30)] autorelease]; 71 | [self.view addSubview:imageLabel]; 72 | [self.view addSubview:self.imageSwitch]; 73 | 74 | UILabel *mediaLabel = [[[UILabel alloc] initWithFrame:CGRectMake(10, 190, 80, 30)] autorelease]; 75 | mediaLabel.text = @"多媒体"; 76 | mediaLabel.backgroundColor = [UIColor clearColor]; 77 | mediaLabel.textAlignment = UITextAlignmentCenter; 78 | self.mediaSwitch = [[[UISwitch alloc] initWithFrame:CGRectMake(100, 190, 120, 30)] autorelease]; 79 | [self.view addSubview:mediaLabel]; 80 | [self.view addSubview:self.mediaSwitch]; 81 | 82 | 83 | self.shareButton = [UIButton buttonWithType:UIButtonTypeRoundedRect]; 84 | self.shareButton.titleLabel.numberOfLines = 2; 85 | self.shareButton.titleLabel.textAlignment = UITextAlignmentCenter; 86 | [self.shareButton setTitle:@"返回消息给微博" forState:UIControlStateNormal]; 87 | [self.shareButton addTarget:self action:@selector(shareButtonPressed) forControlEvents:UIControlEventTouchUpInside]; 88 | self.shareButton.frame = CGRectMake(210, 110, 90, 110); 89 | [self.view addSubview:self.shareButton]; 90 | } 91 | 92 | - (WBMessageObject *)messageToShare 93 | { 94 | WBMessageObject *message = [WBMessageObject message]; 95 | 96 | if (self.textSwitch.on) 97 | { 98 | message.text = @"测试通过WeiboSDK发送文字到微博!"; 99 | } 100 | 101 | if (self.imageSwitch.on) 102 | { 103 | WBImageObject *image = [WBImageObject object]; 104 | image.imageData = [NSData dataWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"image_1" ofType:@"jpg"]]; 105 | message.imageObject = image; 106 | } 107 | 108 | if (self.mediaSwitch.on) 109 | { 110 | WBWebpageObject *webpage = [WBWebpageObject object]; 111 | webpage.objectID = @"identifier1"; 112 | webpage.title = @"分享网页标题"; 113 | webpage.description = [NSString stringWithFormat:@"分享网页内容简介-%.0f", [[NSDate date] timeIntervalSince1970]]; 114 | webpage.thumbnailData = [NSData dataWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"image_2" ofType:@"jpg"]]; 115 | webpage.webpageUrl = @"http://sina.cn?a=1"; 116 | message.mediaObject = webpage; 117 | } 118 | 119 | return message; 120 | } 121 | 122 | - (void)shareButtonPressed 123 | { 124 | WBProvideMessageForWeiboResponse *response = [WBProvideMessageForWeiboResponse responseWithMessage:[self messageToShare]]; 125 | 126 | if ([WeiboSDK sendResponse:response]) 127 | { 128 | [self dismissModalViewControllerAnimated:YES]; 129 | } 130 | } 131 | 132 | @end 133 | -------------------------------------------------------------------------------- /WeiboSDKDemo/WeiboSDKDemo/SendMessageToWeiboViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // SendMessageToWeiboViewController.h 3 | // WeiboSDKDemo 4 | // 5 | // Created by Wade Cheng on 3/29/13. 6 | // Copyright (c) 2013 SINA iOS Team. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "ProvideMessageForWeiboViewController.h" 11 | 12 | @interface SendMessageToWeiboViewController : ProvideMessageForWeiboViewController 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /WeiboSDKDemo/WeiboSDKDemo/SendMessageToWeiboViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // SendMessageToWeiboViewController.m 3 | // WeiboSDKDemo 4 | // 5 | // Created by Wade Cheng on 3/29/13. 6 | // Copyright (c) 2013 SINA iOS Team. All rights reserved. 7 | // 8 | 9 | #import "SendMessageToWeiboViewController.h" 10 | #import "AppDelegate.h" 11 | 12 | @implementation SendMessageToWeiboViewController 13 | 14 | - (void)viewDidLoad 15 | { 16 | [super viewDidLoad]; 17 | 18 | UIButton *ssoButton = [UIButton buttonWithType:UIButtonTypeRoundedRect]; 19 | [ssoButton setTitle:@"请求微博认证(SSO授权)" forState:UIControlStateNormal]; 20 | [ssoButton addTarget:self action:@selector(ssoButtonPressed) forControlEvents:UIControlEventTouchUpInside]; 21 | ssoButton.frame = CGRectMake(20, 250, 280, 50); 22 | [self.view addSubview:ssoButton]; 23 | 24 | UIButton *inviteFriendButton = [UIButton buttonWithType:UIButtonTypeRoundedRect]; 25 | [inviteFriendButton setTitle:@"邀请好友" forState:UIControlStateNormal]; 26 | [inviteFriendButton addTarget:self action:@selector(inviteFriendButtonPressed) forControlEvents:UIControlEventTouchUpInside]; 27 | inviteFriendButton.frame = CGRectMake(20, 370, 280, 50); 28 | [self.view addSubview:inviteFriendButton]; 29 | 30 | UIButton *ssoOutButton = [UIButton buttonWithType:UIButtonTypeRoundedRect]; 31 | [ssoOutButton setTitle:@"登出" forState:UIControlStateNormal]; 32 | [ssoOutButton addTarget:self action:@selector(ssoOutButtonPressed) forControlEvents:UIControlEventTouchUpInside]; 33 | ssoOutButton.frame = CGRectMake(20, 300, 280, 50); 34 | [self.view addSubview:ssoOutButton]; 35 | 36 | 37 | [self.shareButton setTitle:@"分享消息到微博" forState:UIControlStateNormal]; 38 | self.titleLabel.text = @"第三方应用主动发送消息给微博"; 39 | } 40 | 41 | - (void)shareButtonPressed 42 | { 43 | WBSendMessageToWeiboRequest *request = [WBSendMessageToWeiboRequest requestWithMessage:[self messageToShare]]; 44 | request.userInfo = @{@"ShareMessageFrom": @"SendMessageToWeiboViewController", 45 | @"Other_Info_1": [NSNumber numberWithInt:123], 46 | @"Other_Info_2": @[@"obj1", @"obj2"], 47 | @"Other_Info_3": @{@"key1": @"obj1", @"key2": @"obj2"}}; 48 | // request.shouldOpenWeiboAppInstallPageIfNotInstalled = NO; 49 | 50 | [WeiboSDK sendRequest:request]; 51 | } 52 | 53 | - (void)ssoButtonPressed 54 | { 55 | WBAuthorizeRequest *request = [WBAuthorizeRequest request]; 56 | request.redirectURI = kRedirectURI; 57 | request.scope = @"all"; 58 | request.userInfo = @{@"SSO_From": @"SendMessageToWeiboViewController", 59 | @"Other_Info_1": [NSNumber numberWithInt:123], 60 | @"Other_Info_2": @[@"obj1", @"obj2"], 61 | @"Other_Info_3": @{@"key1": @"obj1", @"key2": @"obj2"}}; 62 | [WeiboSDK sendRequest:request]; 63 | } 64 | 65 | - (void)ssoOutButtonPressed 66 | { 67 | AppDelegate *myDelegate =(AppDelegate*)[[UIApplication sharedApplication] delegate]; 68 | [WeiboSDK logOutWithToken:myDelegate.wbtoken delegate:self]; 69 | } 70 | 71 | - (void)inviteFriendButtonPressed 72 | { 73 | NSString *title = @"请输入被邀请人的UID"; 74 | UIAlertView *alert = [[UIAlertView alloc] initWithTitle:title 75 | message:nil 76 | delegate:self 77 | cancelButtonTitle:@"确定" 78 | otherButtonTitles:nil]; 79 | alert.alertViewStyle = UIAlertViewStylePlainTextInput; 80 | 81 | [alert show]; 82 | [alert release]; 83 | 84 | } 85 | 86 | -(void)alertView:(UIAlertView*)alertView clickedButtonAtIndex:(NSInteger)buttonIndex 87 | { 88 | UITextField *textField=[alertView textFieldAtIndex:0]; 89 | 90 | AppDelegate *myDelegate =(AppDelegate*)[[UIApplication sharedApplication] delegate]; 91 | NSLog(@"%@",myDelegate.wbtoken); 92 | NSString *jsonData = @"{\"text\": \"新浪新闻是新浪网官方出品的新闻客户端,用户可以第一时间获取新浪网提供的高品质的全球资讯新闻,随时随地享受专业的资讯服务,加入一起吧\",\"url\": \"http://app.sina.com.cn/appdetail.php?appID=84475\",\"invite_logo\":\"http://sinastorage.com/appimage/iconapk/1b/75/76a9bb371f7848d2a7270b1c6fcf751b.png\"}"; 93 | 94 | [WeiboSDK inviteFriend:jsonData withUid:[textField text] withToken:myDelegate.wbtoken delegate:self]; 95 | } 96 | 97 | - (void)request:(WBHttpRequest *)request didFinishLoadingWithResult:(NSString *)result 98 | { 99 | NSString *title = nil; 100 | UIAlertView *alert = nil; 101 | 102 | title = @"收到网络回调"; 103 | alert = [[UIAlertView alloc] initWithTitle:title 104 | message:[NSString stringWithFormat:@"%@",result] 105 | delegate:nil 106 | cancelButtonTitle:@"确定" 107 | otherButtonTitles:nil]; 108 | [alert show]; 109 | [alert release]; 110 | } 111 | 112 | - (void)request:(WBHttpRequest *)request didFailWithError:(NSError *)error; 113 | { 114 | NSString *title = nil; 115 | UIAlertView *alert = nil; 116 | 117 | title = @"请求异常"; 118 | alert = [[UIAlertView alloc] initWithTitle:title 119 | message:[NSString stringWithFormat:@"%@",error] 120 | delegate:nil 121 | cancelButtonTitle:@"确定" 122 | otherButtonTitles:nil]; 123 | [alert show]; 124 | [alert release]; 125 | } 126 | 127 | @end 128 | -------------------------------------------------------------------------------- /WeiboSDKDemo/WeiboSDKDemo/WeiboSDKDemo-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIcons 12 | 13 | CFBundlePrimaryIcon 14 | 15 | CFBundleIconFiles 16 | 17 | icon.png 18 | icon@2x.png 19 | 20 | 21 | 22 | CFBundleIdentifier 23 | com.sina.weibo.SNWeiboSDKDemo 24 | CFBundleInfoDictionaryVersion 25 | 6.0 26 | CFBundleName 27 | ${PRODUCT_NAME} 28 | CFBundlePackageType 29 | APPL 30 | CFBundleShortVersionString 31 | 1.0 32 | CFBundleSignature 33 | ???? 34 | CFBundleURLTypes 35 | 36 | 37 | CFBundleTypeRole 38 | Editor 39 | CFBundleURLName 40 | com.weibo 41 | CFBundleURLSchemes 42 | 43 | wb2045436852 44 | 45 | 46 | 47 | CFBundleVersion 48 | 1.0 49 | LSRequiresIPhoneOS 50 | 51 | UIRequiredDeviceCapabilities 52 | 53 | armv7 54 | 55 | UISupportedInterfaceOrientations 56 | 57 | UIInterfaceOrientationPortrait 58 | UIInterfaceOrientationLandscapeLeft 59 | UIInterfaceOrientationLandscapeRight 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /WeiboSDKDemo/WeiboSDKDemo/WeiboSDKDemo-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'WeiboSDKDemo' target in the 'WeiboSDKDemo' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | 15 | #import "WeiboSDK.h" 16 | 17 | #define kAppKey @"2045436852" 18 | #define kRedirectURI @"http://www.sina.com" 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /WeiboSDKDemo/WeiboSDKDemo/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /WeiboSDKDemo/WeiboSDKDemo/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobileresearch/weibo_ios_sdk_sso-oauth/e8b25034145c35c282f3751f5e0b0a4b4723625e/WeiboSDKDemo/WeiboSDKDemo/icon.png -------------------------------------------------------------------------------- /WeiboSDKDemo/WeiboSDKDemo/icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobileresearch/weibo_ios_sdk_sso-oauth/e8b25034145c35c282f3751f5e0b0a4b4723625e/WeiboSDKDemo/WeiboSDKDemo/icon@2x.png -------------------------------------------------------------------------------- /WeiboSDKDemo/WeiboSDKDemo/image_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobileresearch/weibo_ios_sdk_sso-oauth/e8b25034145c35c282f3751f5e0b0a4b4723625e/WeiboSDKDemo/WeiboSDKDemo/image_1.jpg -------------------------------------------------------------------------------- /WeiboSDKDemo/WeiboSDKDemo/image_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobileresearch/weibo_ios_sdk_sso-oauth/e8b25034145c35c282f3751f5e0b0a4b4723625e/WeiboSDKDemo/WeiboSDKDemo/image_2.jpg -------------------------------------------------------------------------------- /WeiboSDKDemo/WeiboSDKDemo/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // WeiboSDKDemo 4 | // 5 | // Created by Wade Cheng on 3/29/13. 6 | // Copyright (c) 2013 SINA iOS Team. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "AppDelegate.h" 12 | 13 | int main(int argc, char *argv[]) 14 | { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /WeiboSDKDemo/WeiboSDKLibDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /WeiboSDKDemo/WeiboSDKLibDemo.xcodeproj/project.xcworkspace/xcshareddata/WeiboSDKLibDemo.xccheckout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDESourceControlProjectFavoriteDictionaryKey 6 | 7 | IDESourceControlProjectIdentifier 8 | B5366391-EFA3-482D-8990-D28F745005BF 9 | IDESourceControlProjectName 10 | WeiboSDKLibDemo 11 | IDESourceControlProjectOriginsDictionary 12 | 13 | 5124ADAE-B4AF-4D64-8849-9D8D3A8BA302 14 | https://svn.intra.sina.com.cn/wap/trunk/client/project/cocoalibrary/WeiboSDK/trunk 15 | 16 | IDESourceControlProjectPath 17 | WeiboSDKDemo/WeiboSDKLibDemo.xcodeproj/project.xcworkspace 18 | IDESourceControlProjectRelativeInstallPathDictionary 19 | 20 | 5124ADAE-B4AF-4D64-8849-9D8D3A8BA302 21 | ../../.. 22 | 23 | IDESourceControlProjectRepositoryRootDictionary 24 | 25 | 5124ADAE-B4AF-4D64-8849-9D8D3A8BA302 26 | https://svn.intra.sina.com.cn/wap 27 | 28 | IDESourceControlProjectURL 29 | https://svn.intra.sina.com.cn/wap/trunk/client/project/cocoalibrary/WeiboSDK/trunk/WeiboSDKDemo/WeiboSDKLibDemo.xcodeproj 30 | IDESourceControlProjectVersion 31 | 110 32 | IDESourceControlProjectWCCIdentifier 33 | 5124ADAE-B4AF-4D64-8849-9D8D3A8BA302 34 | IDESourceControlProjectWCConfigurations 35 | 36 | 37 | IDESourceControlRepositoryBranchesRelativeLocationKey 38 | trunk/client/project/cocoalibrary/WeiboSDK/branches 39 | IDESourceControlRepositoryExtensionIdentifierKey 40 | public.vcs.subversion 41 | IDESourceControlRepositoryTrunkRelativeLocationKey 42 | trunk/client/project/cocoalibrary/WeiboSDK/trunk 43 | IDESourceControlWCCIdentifierKey 44 | 5124ADAE-B4AF-4D64-8849-9D8D3A8BA302 45 | IDESourceControlWCCName 46 | WeiboSDK (trunk) 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /WeiboSDKDemo/WeiboSDKLibDemo.xcodeproj/project.xcworkspace/xcuserdata/hongtao.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobileresearch/weibo_ios_sdk_sso-oauth/e8b25034145c35c282f3751f5e0b0a4b4723625e/WeiboSDKDemo/WeiboSDKLibDemo.xcodeproj/project.xcworkspace/xcuserdata/hongtao.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /WeiboSDKDemo/WeiboSDKLibDemo.xcodeproj/xcuserdata/hongtao.xcuserdatad/xcschemes/WeiboSDKLibDemo.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 51 | 52 | 58 | 59 | 60 | 61 | 62 | 63 | 69 | 70 | 76 | 77 | 78 | 79 | 81 | 82 | 85 | 86 | 87 | -------------------------------------------------------------------------------- /WeiboSDKDemo/WeiboSDKLibDemo.xcodeproj/xcuserdata/hongtao.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | WeiboSDKLibDemo.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 18E67EAF17057D8F00DFAD63 16 | 17 | primary 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /WeiboSDKDemo/libWeiboSDK/WeiboSDK.bundle/images/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobileresearch/weibo_ios_sdk_sso-oauth/e8b25034145c35c282f3751f5e0b0a4b4723625e/WeiboSDKDemo/libWeiboSDK/WeiboSDK.bundle/images/close.png -------------------------------------------------------------------------------- /WeiboSDKDemo/libWeiboSDK/WeiboSDK.bundle/images/close@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobileresearch/weibo_ios_sdk_sso-oauth/e8b25034145c35c282f3751f5e0b0a4b4723625e/WeiboSDKDemo/libWeiboSDK/WeiboSDK.bundle/images/close@2x.png -------------------------------------------------------------------------------- /WeiboSDKDemo/libWeiboSDK/libWeiboSDK.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobileresearch/weibo_ios_sdk_sso-oauth/e8b25034145c35c282f3751f5e0b0a4b4723625e/WeiboSDKDemo/libWeiboSDK/libWeiboSDK.a -------------------------------------------------------------------------------- /WeiboSDKDemo/libWeiboSDK_X64/WeiboSDK.bundle/images/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobileresearch/weibo_ios_sdk_sso-oauth/e8b25034145c35c282f3751f5e0b0a4b4723625e/WeiboSDKDemo/libWeiboSDK_X64/WeiboSDK.bundle/images/close.png -------------------------------------------------------------------------------- /WeiboSDKDemo/libWeiboSDK_X64/WeiboSDK.bundle/images/close@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobileresearch/weibo_ios_sdk_sso-oauth/e8b25034145c35c282f3751f5e0b0a4b4723625e/WeiboSDKDemo/libWeiboSDK_X64/WeiboSDK.bundle/images/close@2x.png -------------------------------------------------------------------------------- /WeiboSDKDemo/libWeiboSDK_X64/libWeiboSDK.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobileresearch/weibo_ios_sdk_sso-oauth/e8b25034145c35c282f3751f5e0b0a4b4723625e/WeiboSDKDemo/libWeiboSDK_X64/libWeiboSDK.a -------------------------------------------------------------------------------- /libWeiboSDK/WeiboSDK.bundle/images/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobileresearch/weibo_ios_sdk_sso-oauth/e8b25034145c35c282f3751f5e0b0a4b4723625e/libWeiboSDK/WeiboSDK.bundle/images/close.png -------------------------------------------------------------------------------- /libWeiboSDK/WeiboSDK.bundle/images/close@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobileresearch/weibo_ios_sdk_sso-oauth/e8b25034145c35c282f3751f5e0b0a4b4723625e/libWeiboSDK/WeiboSDK.bundle/images/close@2x.png -------------------------------------------------------------------------------- /libWeiboSDK/libWeiboSDK.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobileresearch/weibo_ios_sdk_sso-oauth/e8b25034145c35c282f3751f5e0b0a4b4723625e/libWeiboSDK/libWeiboSDK.a -------------------------------------------------------------------------------- /libWeiboSDK_X64/WeiboSDK.bundle/images/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobileresearch/weibo_ios_sdk_sso-oauth/e8b25034145c35c282f3751f5e0b0a4b4723625e/libWeiboSDK_X64/WeiboSDK.bundle/images/close.png -------------------------------------------------------------------------------- /libWeiboSDK_X64/WeiboSDK.bundle/images/close@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobileresearch/weibo_ios_sdk_sso-oauth/e8b25034145c35c282f3751f5e0b0a4b4723625e/libWeiboSDK_X64/WeiboSDK.bundle/images/close@2x.png -------------------------------------------------------------------------------- /libWeiboSDK_X64/libWeiboSDK.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobileresearch/weibo_ios_sdk_sso-oauth/e8b25034145c35c282f3751f5e0b0a4b4723625e/libWeiboSDK_X64/libWeiboSDK.a -------------------------------------------------------------------------------- /微博IOS平台SDK文档V2.4.0.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobileresearch/weibo_ios_sdk_sso-oauth/e8b25034145c35c282f3751f5e0b0a4b4723625e/微博IOS平台SDK文档V2.4.0.pdf --------------------------------------------------------------------------------