Latest 0.9.0
Homepage https://github.com/noppefoxwolf/GabKit
License MIT
Platforms ios 10.0
Authors

CI Status
Version
License
Platform

Example

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

Requirements

Installation

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

pod 'GabKit'

Usage

Authorize

let gab = Gab(clientID: Secret.clientID,
                clientSecret: Secret.clientSecret,
                scopes: .read, .notifications, .writePost)
gab.authorize(withPresentingFrom: self)

Add your callback url as url scheme to info.plist.

<key>CFBundleURLTypes</key>
    <array>
        <dict>
            <key>CFBundleTypeRole</key>
            <string>Editor</string>
            <key>CFBundleURLSchemes</key>
            <array>
                <string>gabkit</string>
            </array>
        </dict>
    </array>

Handle URL in AppDelegate.

func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool {
    Gab.handleURL(url)
    return true
}

Get Main feed

gab.getMainFeed(success: { (response) in
})

Create Post

gab.createPost(body: "hello gab.")

Author

noppefoxwolf, [email protected]

License

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

TODO

  • [x] authorize
  • [x] create post
  • [ ] convenience upload image and publish post
  • [x] engaging with other users
  • [x] feeds
  • [x] group
  • [x] notificaitons
  • [x] popular
  • [x] reacting to posts
  • [x] request
  • [x] user details
  • [x] support ios
  • [ ] support osx
  • [ ] support linux
  • [x] support cocoapods
  • [ ] support carthage
  • [ ] support swift package manager

  • supported attachment type
    • [x] media
    • [x] url

Latest podspec

{
    "name": "GabKit",
    "version": "0.9.0",
    "summary": "Gab api client with swift.",
    "description": "Gab api client with swift.",
    "homepage": "https://github.com/noppefoxwolf/GabKit",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "noppefoxwolf": "[email protected]"
    },
    "source": {
        "git": "https://github.com/noppefoxwolf/GabKit.git",
        "tag": "0.9.0"
    },
    "social_media_url": "https://twitter.com/noppefoxwolf",
    "platforms": {
        "ios": "10.0"
    },
    "source_files": "GabKit/Classes/**/*",
    "swift_version": "4.2"
}

Pin It on Pinterest

Share This