tiCardIO_IOS
Objective-C Python JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Classes
assets
card.io_ios_sdk_2.3
documentation
example
hooks
platform
ti_cardio.xcodeproj
.gitignore
.project
CHANGELOG.txt
LICENSE
LICENSE.txt
README
README.md
TiCardio_Prefix.pch
build.py
manifest
module.xcconfig
timodule.xml
titanium.xcconfig

README.md

tiCardIO_IOS

tiCardIO_IOS

var win = Ti.UI.createWindow({
  backgroundColor:'white'
});
var label = Ti.UI.createLabel();
win.add(label);
win.open();

// TODO: write your module tests here
var ti_cardio = require('ti.cardio');
Ti.API.info("module is => " + ti_cardio);

ti_cardio.scanCard("YOUR ID GOES HERE", function(data){
      Ti.API.info(' info ' + JSON.stringify(data));
});

Sign up for an account at https://www.card.io/, create an app, and take note of your app_token. Replace it in the code above and you are off and running, ready to scan some cards.