Home

Awesome

###SCWeiboManager

A block style weibo manager build on top of official Sina Weibo SDK to provide easy way to authorize and make http request.

####Feature

####Third Parties

####Usage

#####notice:

- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
{
  if ([url.scheme isEqualToString:@""]) {
      return [WeiboSDK handleOpenURL:url delegate:[SCWeiboManager manager]];
  }

  return YES;
}

####Example

Authorize:

  [[SCWeiboManager manager] authorizeToWeiboSuccess:^(WBBaseResponse *response) {
      NSLog(@"success");
  } failure:^(NSError *error) {
      NSLog(@"failed");
  }];

Send Weibo with image

  [[SCWeiboManager manager] sendWeiboWithText:@"hahahah" image:image Success:^(NSDictionary *responseDict) {
      NSLog(@"success:\n%@", responseDict);
  } failure:^(NSError *error) {
      NSLog(@"failure:\n%@", [error description]);
  }];

####License

MIT