Swiftpack.co - Package - noppefoxwolf/GabKit

GabKit

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, noppelabs@gmail.com

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

  • [x] support carthage

  • [ ] support swift package manager

  • [x] codable

  • supported attachment type

    • [x] media
    • [x] media array
    • [x] url
    • [x] giphy
    • [x] youtube
  • [x] undocumented api

Github

link
Stars: 10
Help us keep the lights on

Dependencies

Used By

Total: 0

Releases

0.5.0 - Oct 11, 2018

0.1.0 - Oct 9, 2018