crypto.createHmac('sha256', 'a secret').update(stringToSign).digest('base64');
crypto.hmac('a secret', 'stringToSign', 'sha256')
which return a String in hexadecimal encoding .new Buffer(crypto.hmac('a secret', 'stringToSign', 'sha256'), 'hex').toString('base64');
Florian
--
You received this message because you are subscribed to a topic in the Google Groups "ArangoDB" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/arangodb/Ptw8hX9kbLs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to arangodb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I have another question about HTTP request in ArangoDB :
Am 13. September 2016 um 11:07:41, Florian (floria...@gmail.com) schrieb:
I have another question about HTTP request in ArangoDB :ArangoDB uses synchronous connections so when we send an HTTP request in a Foxx route, is ArangoDB waiting for the HTTP response before sending its own response ?
Yes, it is. That's why we introduce Foxx Queue. Did you have a look at the Foxx Queues already?
An example :I have a route in a Foxx service (/createEntity) which :Is the Foxx route waiting for the HTTP request to be sent or return the response immediately after calling request() function ?
- save user data into ArangoDB
- send an HTTP request to the SQS (the queue service).
If it is, is it interesting to create a Foxx queue which handles these HTTP requests ? Is there another way to not wait ?Thanks in advance !Florian
--
You received this message because you are subscribed to the Google Groups "ArangoDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to arangodb+u...@googlegroups.com.
Any errors raised by the script will be handled depending on how the script was invoked:
statusCode
property if specified or 500.