- Add require statement
local idVerify = require( "plugin.idVerifySig" )
- Init the library providing a listener.
idVerify.init( listener )
- Call method to request signature. Data in a form of a lua table will be returned in the listerner specified in the init. Note that user has to be signed in to GameCenter for this to work (please look at implementation in sample app).
idVerify.getSignature()
Sample data returned. In case of error isError will be true.
{
"keyURL":"<keyURL>",
"name":"IdVerifySigEvent",
"salt":"<salt>",
"signature":"<signature>",
"timestamp":12345678,
"isError":false
}
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.