ok-js-sdk (JavaScript SDK)
Usage
Download and pack your app with oksdk.js, try one of the provided samples.
Samples
- helloworld - Simple Hello World, %user% application skeleton
- helloworld-norefresh - Advanced Hello World, proceedes OAUTH authorization via popup window and sending state back via javascript postmessage, so leading to no redirect on the main page
- send-simple - Sending a simple notification to the current user (via non-session method notifications.sendSimple)
- viral - Viral widgets (post media topic; suggest/invite friends to the app)
Application Requirements
An application registered within OK platform should have:
Mobile / Web game
- Target platform checked (like MOBILE_HTML)
- A VALUABLE_ACCESS permission being checked or requested
External / OAUTH game (also applicable for native Android/iOS)
- EXTERNAL platform checked
- Client OAUTH checkbox checked
- A VALUABLE_ACCESS permission being checked or requested