Update gemspec
Add method to send payload to api
Handle errors when sending payload