CUShareCenter 1.0.0

CUShareCenter 1.0.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Unclaimed.



  • By
  • curer

介绍

分享组件

新浪 QQ RENREN2.0 认证分享

example

1、

[CUShareCenter connectTencentQQWithAppID:@"100383099"
                                      appKey:@"4a9f17a08ed276a198de27ba58ff9b6d"
                                 redirectUri:@""];

2、

    id <CUShareClientDataSource> client = [CUShareCenter clientWithPlatForm:@"QQ"];

    //绑定登陆

    [client bindSuccess:^(NSString *message, id data) {
        NSLog(@"%@", message);
    } error:^(NSString *message, id data) {
        NSLog(@"%@", message);
    }];

    //分享
    [[CUShareCenter clientWithPlatForm:@"QQ"] content:@"test"
                                            imageData:imageData
                                              success:^(id data) {
                                                  NSLog(@"%@", data);
                                              } error:^(id error) {
                                                   NSLog(@"%@", error);
                                              }];