mod_arthur¶
A Corona SDK module for interfacing with the OAuth.io service.
Setting Up¶
To use mod_arthur you'll need to take care of a few things first:
- Create an account at OAuth.io (it's free).
- Create a new application at OAuth.io and select API providers.
- Get a hold of your public key for that application.
Important
When you whitelist domains on OAuth.io, you must enter localhost as the only value.
Download¶
Get the mod_arthur module directory and add it to your project.
Add the Module¶
Once you have the mod_arthur module directory in your project, you'll need to require
it:
local Arthur = require("arthur.mod_arthur")
This will return a master Arthur object instance.
Initialization¶
Once you have the OAuth.io public application key, use it to initialize the module:
Arthur.init( '<public_application_key' )
Continue on to the API section to learn more about how to use mod_arthur.