Skip to content

deepdevelop/DDSlackWebhook

Repository files navigation

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, [email protected]

License

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

About

A slack webhook client written with Objective-C

Resources

License

Stars

Watchers

Forks

Packages

No packages published