Signature Class
generate_sec_key method
$ connection = new Signature(partner_id, api_key);$ sec_key = connection.generate_sec_key(timestamp)// where timestamp is optional
The response will be an object:
{sec_key: "<the generated sec key>",timestamp: 1563283420}
confirm_sec_key method
You can also confirm the signature that you receive when you interacting with our servers, simply use the confirm_sec_key method which returns a boolean:
$ connection = new Signature(partner_id, api_key);$ sec_key = connection.confirm_sec_key(sec_key, timestamp)