I'm testing the Drupal services module and it's working fine. I now switched from no key to a key authentication, and the system generated this key for me afw92iej83foijofn23
.
When I inspect node.get
at http://localhost/drupal/admin/build/services/browse/node.get
I see that it now needs 4 extra required parameters stringhash
, stringdomain_name
, stringdomain_time_stamp
, stringnonce
.
Arguments (6)
- stringhash (required) A valid API key.
- stringdomain_name (required) A valid domain for the API key.
- stringdomain_time_stamp (required) Time stamp used to hash key.
- stringnonce (required) One time use nonce also used hash key.
- intnid (required) A node ID.
- arrayfields (optional) A list of fields to return
It seems the first argument isn't just the API key but a hashed API key, hashed with the other fields. How do I generate this API key? Is there an order or a specific way that drupal expects me to hash the key?