Gary Mansted

My feedback

  1. 6 votes
    Vote
    Sign in
    (thinking…)
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    8 comments  ·  Bible Search API  ·  Flag idea as inappropriate…  ·  Admin →
    Gary Mansted commented  · 

    Hi guys, i was looking around for a Swift 3 solution as well and figured this out. To make it super ease -> install the Alamofire library via cocoapods (https://github.com/Alamofire/Alamofire), then just call your request as such:

    func testQuery() {
    Alamofire.request("https://abcdefghijklmnopqrstuvwxyz:@bibles.org/v2/search.js?query=john+3:16&version=eng-GNTD").responseJSON { response in
    print(response)
    if let json = response.result.value {
    print("JSON: \(json)")
    }
    }
    }

    NOTE: Replace: abcdefghijklmnopqurstuvwxyz with your private API key
    NOTE: Make sure you import Alamofire in your class headers.

    Hope this helps someone :)

  2. 2 votes
    Vote
    Sign in
    (thinking…)
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    2 comments  ·  Bible Search  ·  Flag idea as inappropriate…  ·  Admin →
    Gary Mansted supported this idea  · 

Feedback and Knowledge Base