/DDSlackWebhook

A slack webhook client written with Objective-C

Primary LanguageObjective-CMIT LicenseMIT

DDSlackWebhook

DDSlackWebhook is a simple client post notification to your slack channel use slack incoming webhooks. Written in Objective-c.

Installation

CocoaPods

pod 'DDSlackWebhook'

Source File

You can copy all the files under the DDSlackWebhook folder into your project.

Usage

// Config
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    [DDSlackWebhookClient withWebhookURL:[NSURL URLWithString:@""]];
    
    return YES;
}

// Post
[[DDSlackWebhookClient sharedClient] postNotificationToChannel:nil
                                                          text:nil
                                                      username:nil
                                                       iconURL:nil
                                                     iconEmoji:nil
                                                    completion:nil];

Dependency

  • AFNetworking

Author

Liu Yi, 61upup@gmail.com

License

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