umegaya / lua-aws

pure-lua implementation of aws REST APIs
122 stars 35 forks source link

Added SNS basic (?) support #10

Closed CriztianiX closed 9 years ago

CriztianiX commented 9 years ago

Hello! I've added a SNS support I am working with it now!

You can test it with:

moon = require "moon"

local AWS = require ('lua-aws.init') local aws = AWS.new({ accessKeyId = 'XXX', secretAccessKey = 'XXX', endpoint = 'us-east-1.amazonaws.com', region = 'us-east-1' })

local data = { PlatformApplicationArn = 'ARN', Token = "deviceToken", } moon.p(aws.SNS:api():createPlatformEndpoint(data))

umegaya commented 9 years ago

hi, thank you for your contribution :+1: it looks good to me, I will merge it.