Kik API - NodeJS Library
For any webapp, some features will require having a backend. This NodeJS package makes verifying user data easy for those developing against the Kik browser API.
Links
Usage
Getting started
npm install kik-lib
Alternatively, you can include the library in your package.json
:
Now you can use the library in your code:
var kik = ;
Authentication
kik.verify()
accepts 3 arguments and a callback function.
This method handles all responses outlined in the Authentication Docs and will automatically retry requests where applicable.
// the user we want to verifyvar username = 'kikteam'; // the hostname of your appvar host = 'myapp.com'; // the signed data from the client. http://dev.kik.com/docs/#identity-authvar signedData = 'mySignedData'; kik;
Anonymous authentication
kik.anonymousVerify()
accepts 3 arguments and a callback function.
This method handles all responses outlined in the Anonymous Authentication Docs and will automatically retry requests where applicable.
// the anonymous user we want to verifyvar anonToken = 'getThisFromTheClient'; // the hostname of your appvar host = 'myapp.com'; // the signed datavar signedData = 'mySignedData'; kik;