CUShareCenter 1.0.0

CUShareCenter 1.0.0

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

Maintained by Unclaimed.


Downloads

Total17
Week0
Month0

Installs

Apps6
powered by Segment

GitHub

Stars21
Watchers2
Forks7
Issues1
Contributors1
Pull Requests0

Code

Files60
LOCLines of Code 3,397


  • 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);
                                              }];