tremendous-rewards / tremendous-ruby Goto Github PK
View Code? Open in Web Editor NEWRuby client for Tremendous API
Home Page: https://developers.tremendous.com
License: MIT License
Ruby client for Tremendous API
Home Page: https://developers.tremendous.com
License: MIT License
Hi!
Is there a list of the web hook events sent, and what they mean? On the TestFlight server, I'm only receiving ORDERS.CREATED events. It would be tremendously helpful to get events on rewards delivered, opened/viewed, redeemed, cancelled, etc.
Thanks!
I'm occasionally getting this error making requests to both production and sandbox:
unexpected token at 'Retry later (JSON::ParserError)
It looks as if the API response is unhandled by this gem. I have retry logic in my implementation, so it would be useful for the gem to surface when your service would like the retry to occur or at least handle the response in a way that isn't a JSON parse error.
Thanks!
According to this:
we should be using Rails versions
= 5.0.0, <= 5.2.4.2 or
= 6.0.0, <= 6.0.3 | 6.0.3.1
It appears Tremendous is currently only supported with activesupport
>= 3.2, <= 5.2.3, even though the gemspec
is pointing to 'activesupport', '>= 3.2', '<= 6.0.0.rc1'
Sometimes, Tremendous sends down what appears to be HTML instead of a JSON response. This happens when we try to create an order. There doesn't seem to be any recognizable pattern other than sometimes it just fails. We receive this error:
JSON::ParserError (783: unexpected token at '<!DOCTYPE html>
Unfortunately, this in turn breaks our API handling. I've included a rescue StandardError
block around this create!
call, but this is not hit and instead the entire process is killed, returning a 500 back to our clients.
This seems similar to #8 but I think perhaps deserves a more fundamental fix is needed.
Please advise, thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.