Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thii/binlist
BIN lookup library in Swift
https://github.com/thii/binlist
Last synced: 4 months ago
JSON representation
BIN lookup library in Swift
- Host: GitHub
- URL: https://github.com/thii/binlist
- Owner: thii
- License: mit
- Created: 2015-06-26T11:17:11.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-11T15:59:03.000Z (about 9 years ago)
- Last Synced: 2024-10-10T05:35:16.240Z (4 months ago)
- Language: Swift
- Homepage:
- Size: 11.7 KB
- Stars: 2
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BINList
[](https://travis-ci.org/thii/BINList)
[](https://img.shields.io/cocoapods/v/BINList.svg)
[](https://github.com/Carthage/Carthage)BIN lookup library in Swift.
BINList is a simple library for searching Issuer Identification Numbers (IIN). The first 6 digits of a credit card number are known as the Issuer Identification Number (IIN), previously known as Bank Identification Number (BIN). These identify the institution that issued the card to the card holder.
This library queries Binlist.net's public REST API.
## Requirements
- iOS 8.0+ / Mac OS X 10.9+
- Xcode 6.3## Installation
### CocoaPods
[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects.
To integrate BINList into your Xcode project using CocoaPods, specify it in your `Podfile`:
```ruby
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!pod 'BINList'
```Then, run the following command:
```bash
$ pod install
```### Carthage
To integrate BINList into your Xcode project using Carthage, specify it in your `Cartfile`:
```ogdl
github "thii/BINList"
```## Usage
```swift
import BINListBINList.find("431940", { (data) -> Void in
println(data)
return
})
```## License
BINList is released under the MIT license. See LICENSE for details.