ATShare 0.1.16

ATShare 0.1.16

Maintained by ablettx.



 
Depends on:
ATCategories>= 0
UMCCommon>= 0
UMCShare/Social/ReducedWeChat>= 0
UMCShare/Social/ReducedQQ>= 0
UMCShare/Social/ReducedSina>= 0
 

ATShare 0.1.16

ATShare

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

#import <ATShare/ATShare.h>
ATShare *share = [ATShare new];
[share addSocial:[ATSocialWechat new]];
[share addSocial:[ATSocialWechatTimeline new]];

ATShareResWeb *res = [ATShareResWeb new];
res.title = @"ATShare";
res.desc = @"Social share";
res.thumb = [UIImage imageNamed:@"avatar"];
res.urlString = @"https://github.com/ablettchen/ATShare";

ATSocialWechat *wechat = [ATSocialWechat new];
wechat.appKey = @"xxxxxx";
wechat.appSecret = @"xxxxxx";
wechat.redirectURL = @"http://mobile.umeng.com/social";

[share shareTo:wechat res:res finished:^(NSError * _Nullable error, id<ATSocialProtocol>  _Nonnull social) {
    NSString *msg = [NSString stringWithFormat:@"%@", error?error.localizedDescription:@"succeed"];
    [self.view makeToast:msg];
}];

Requirements

Installation

ATShare is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'ATShare'

Author

ablett, [email protected]

License

ATShare is available under the MIT license. See the LICENSE file for more info.