All Projects → PlugForMac → HypeMachineAPI

PlugForMac / HypeMachineAPI

Licence: MIT license
No description or website provided.

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to HypeMachineAPI

SwiftFCXRefresh
Pull to refresh in Swift.
Stars: ✭ 29 (-3.33%)
Mutual labels:  carthage
SDWebImageHEIFCoder
A SDWebImage coder plugin to support HEIF image without Apple's Image/IO framework
Stars: ✭ 31 (+3.33%)
Mutual labels:  carthage
GCXMulticastDNSKit
Multicast DNS framework for iOS
Stars: ✭ 16 (-46.67%)
Mutual labels:  carthage
AckAck
Acknowledgement Plist Generator
Stars: ✭ 37 (+23.33%)
Mutual labels:  carthage
GCXTrustPolicy
SSL pinning and trust validation framework for iOS
Stars: ✭ 21 (-30%)
Mutual labels:  carthage
Mechanica
A cross-platform library of Swift utils to ease your iOS | macOS | watchOS | tvOS and Linux development.
Stars: ✭ 27 (-10%)
Mutual labels:  carthage
JHTAlertController
A custom iOS alert that replaces the stock UIAlertController. Easily style the alert to match your app. Written in Swift for iOS.
Stars: ✭ 58 (+93.33%)
Mutual labels:  carthage
NeumorphismKit
Neumorphism framework for UIKit.
Stars: ✭ 39 (+30%)
Mutual labels:  carthage
DPVideoMerger-Swift
Multiple videos merge in one video with manage scale & aspect ratio and also merge videos to grid matrix layout for Swift.
Stars: ✭ 49 (+63.33%)
Mutual labels:  carthage
Columbus
A feature-rich country picker for iOS, tvOS and watchOS.
Stars: ✭ 23 (-23.33%)
Mutual labels:  carthage
STTextView
📝 STTextView is a light-weight library that adds a placeholder to the UITextView.
Stars: ✭ 36 (+20%)
Mutual labels:  carthage
SwiftMan
Swift extensions and utils classes
Stars: ✭ 31 (+3.33%)
Mutual labels:  carthage
ZVRefreshing
A pure-swift and wieldy refresh component.
Stars: ✭ 29 (-3.33%)
Mutual labels:  carthage
Euclid
Great-circle mathematics helper library for platforms using Swift -
Stars: ✭ 46 (+53.33%)
Mutual labels:  carthage
SSCustomPullToRefresh
SSCustomPullToRefresh is an open-source library that uses UIKit to add an animation to the pull to refresh view in a UITableView and UICollectionView.
Stars: ✭ 62 (+106.67%)
Mutual labels:  carthage
NumPad
Number Pad (inspired by Square)
Stars: ✭ 81 (+170%)
Mutual labels:  carthage
carhacking
car hacking tools
Stars: ✭ 40 (+33.33%)
Mutual labels:  carthage
spark-sdk-ios
DEPRECATED Particle iOS Cloud SDK. Use -->
Stars: ✭ 52 (+73.33%)
Mutual labels:  carthage
SSAppUpdater
SSAppUpdater is an open-source framework that compares the current version of the app with the store version and returns the essential details of it like app URL, new app version number, new release note, etc. So you can either redirect or notify the user to update their app.
Stars: ✭ 58 (+93.33%)
Mutual labels:  carthage
SwiftUIFormValidator
Declarative form validator for SwiftUI.
Stars: ✭ 34 (+13.33%)
Mutual labels:  carthage

HypeMachineAPI

This is a partial implementation of the Hype Machine API in Swift. It is currently targetted at OSX but could easily be modified to work for iOS as well. Please create a pull request if you'd like iOS support.

Swift Compatability

Version 1.0 and beyond have been updated to work with Swift 3. Use the previous version, 0.5.4, for Swift 2.2.

Installation

Carthage

github "PlugForMac/HypeMachineAPI" ~> VERSION_NUMBER

CocoaPods

platform :osx, '10.11'
use_frameworks!

pod 'HypeMachineAPI', '~> VERSION_NUMBER'

Use

HypeMachineAPI.Requests.Blogs.index { response in
    switch response.result {
    case .success(let blogs):
        print(blogs)
    case .failure(let error):
        print(error)
    }
}

This API is build on top of Alamofire and uses it's data types extensively. We use their DataResponse as the response for all requests, we also use their Result type to determine success or failure. Please check out their documentation for more info.

Note: requests return an instance of Alamofire DataRequest so that you can chain additional validations or make other modifications to the request if you need to.

You can find the source for all requests in the Source/*Request.swift files.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].