on 2022 May 12 3:58 PM
I am evaluating the accounts.stream API at the moment.
According to the documentation the create method has a "since" parameter which is supposed to be a UNIX timestamp. I wrote a small script and here is what I get:
==================================================
Create Stream Command
==================================================
Since: 1652107896
Now: 1652367097
==================================================
Time: 2022-05-12T14:51:37.001Z
StatusCode: 400
StatusReason: Bad Request
ErrorCode: 400006
ErrorMessage: Invalid parameter value
ErrorDetails: Start time cannot be in future or earlier than 30 days ago: since
==================================================
When I decode "1652107896" it gives me "Mon May 09 2022 14:51:36 GMT+0000" so three days ago. That should be well within the "Now-30d"
If I just omit the "since" parameter the call goes through. So I am missing some detail here.
Link to documentation: https://help.sap.com/docs/SAP_CUSTOMER_DATA_CLOUD/8b8d6fffe113457094a17701f63e3d6a/de20e73c5f0e4df0b...
Request clarification before answering.
Hi Michael,
The since parameter is in milliseconds unix format.
So try 1652107896000 and it should work.
Cheers,
Igal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks igal.mi !
OK, I could have tried that on my own...
However: Do you have ways of contacting the docu team? Would be nice to have that clarified in the documentation.
The wording "The timstamp to begin the records in Unix time." implies seconds since Jan 1st 1970 to me.
Also note the typo in "timstamp".
If you take care about the above: There is also a typo in the "read" method's reference: "cusrsorId" -> "cursorId"
If you copy and paste from the official reference it leads to an error.
Hey mgissing,
I'm a step ahead of you 🙂 Already contacted the doc team.
Igal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.