Open cryptoluks opened 2 years ago
Ok at least I got the callback stuff working by calling the arrow.timestamp
as method in event.py
and not passing the method itself to json.dumps
. Not sure why this worked in the first place for anyone.
diff --git a/app/event.py b/app/event.py
index 506708f..a6f264b 100644
--- a/app/event.py
+++ b/app/event.py
@@ -59,7 +59,7 @@ def bunq_callback_request():
"request_id": metaid,
"meta": {
"id": metaid,
- "timestamp": arrow.get(obj["created"]).timestamp
+ "timestamp": arrow.get(obj["created"]).timestamp()
}
}
@@ -129,7 +129,7 @@ def bunq_callback_mutation():
"payment_id": metaid,
"meta": {
"id": metaid,
- "timestamp": arrow.get(payment["created"]).timestamp
+ "timestamp": arrow.get(payment["created"]).timestamp()
}
}
arrow
had some breaking changes with 1.0, so timestamp
property is now called int_timestamp
and the timestamp
method matches behavior of datetime
. So it should probably changed to int_timestamp
.
See https://github.com/arrow-py/arrow/issues/832
diff --git a/app/event.py b/app/event.py
index 506708f..a6f264b 100644
--- a/app/event.py
+++ b/app/event.py
@@ -59,7 +59,7 @@ def bunq_callback_request():
"request_id": metaid,
"meta": {
"id": metaid,
- "timestamp": arrow.get(obj["created"]).timestamp
+ "timestamp": arrow.get(obj["created"]).int_timestamp
}
}
@@ -129,7 +129,7 @@ def bunq_callback_mutation():
"payment_id": metaid,
"meta": {
"id": metaid,
- "timestamp": arrow.get(payment["created"]).timestamp
+ "timestamp": arrow.get(payment["created"]).int_timestamp
}
}
Maybe pinning the packages version is a good idea. I will do some PRs if I find some free time :).
Okay I found a workaround for the missing fields error. Creating the applet with the iOS app works without any problems.
It seems to be a bug of IFTTT web interface, the request payload to https://ifttt.com/api/v3/graph
it is randomly missing field parameters. Tested it with different browsers and addons disabled.
Hi,
thanks for the great project. Also the documentation looks very, very good for a project this size.
I wonder if the project is still alive? I tried installing the project, but get some exceptions on callbacks:
Furthermore, with the mutation triggers, I get errors in IFTTT if i do not provide every parameter. I double checked the documentation looking for a way to define optional parameters. But according to documentation, a mutation trigger with ANY/ANY is possible without defining the remaining.
Is anybody currently using the project with success?
Thank you very much.