GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - PlugForMac/HypeMachineAPI

BranchesTags
Open more actions menu

Latest commit

 

History

58 Commits
58 Commits

Folders and files

NameName
Last commit message
Last commit date
HypeMachineAPI.xcodeproj
HypeMachineAPI.xcodeproj
 
 
HypeMachineAPI.xcworkspace
HypeMachineAPI.xcworkspace
 
 
Source
Source
 
 
Tests
Tests
 
 
.gitignore
.gitignore
 
 
Cartfile
Cartfile
 
 
Cartfile.resolved
Cartfile.resolved
 
 
HypeMachineAPI.podspec
HypeMachineAPI.podspec
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

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.

About

No description or website provided.

Topics

carthagecocoapodsswift

Resources

Readme
MIT license
Activity
Custom properties

Stars

29 stars

Watchers

3 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.